home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1996-11-11 | 409.9 KB | [ ONLN/HLX2]
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary ).
Confidence Program Detection Match Type Support
10%
dexvert
MacBinary (archive/macBinary)
fallback
Supported
100%
file
MacBinary II, inited, Sun Apr 25 05:10:33 1993, modified Mon Nov 11 12:18:51 1996, creator 'HLX2', type 'ONLN', 411796 bytes "The Speech Manager" , at 0x64914 7622 bytes resource
default (weak)
99%
file
data
default
100%
TrID
MacBinary 2
default (weak)
100%
siegfried
fmt/1762 MacBinary (II)
default
100%
lsar
MacBinary
default
id metadata key value macFileType [ ONLN] macFileCreator [ HLX2]
hex view +--------+-------------------------+-------------------------+--------+--------+ |00000000| 00 12 54 68 65 20 53 70 | 65 65 63 68 20 4d 61 6e |..The Sp|eech Man| |00000010| 61 67 65 72 00 00 00 00 | 00 00 00 00 00 00 00 00 |ager....|........| |00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......| |00000050| 00 00 00 00 06 48 94 00 | 00 1d c6 a8 00 06 09 ae |.....H..|........| |00000060| ad 10 7b 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..{.....|........| |00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 3f 9b 00 00 |........|....?...| |00000080| 54 68 65 20 53 70 65 65 | 63 68 20 4d 61 6e 61 67 |The Spee|ch Manag| |00000090| 65 72 0d 0d 53 70 65 65 | 63 68 20 4d 61 6e 61 67 |er..Spee|ch Manag| |000000a0| 65 72 20 4f 76 65 72 76 | 69 65 77 20 20 20 32 0d |er Overv|iew 2.| |000000b0| 53 70 65 65 63 68 20 4d | 61 6e 61 67 65 72 20 43 |Speech M|anager C| |000000c0| 6f 6e 63 65 70 74 73 20 | 20 20 33 0d 55 73 69 6e |oncepts | 3.Usin| |000000d0| 67 20 74 68 65 20 53 70 | 65 65 63 68 20 4d 61 6e |g the Sp|eech Man| |000000e0| 61 67 65 72 20 20 20 34 | 0d 47 65 74 74 69 6e 67 |ager 4|.Getting| |000000f0| 20 53 74 61 72 74 65 64 | 20 20 20 34 0d 44 65 74 | Started| 4.Det| |00000100| 65 72 6d 69 6e 69 6e 67 | 20 49 66 20 74 68 65 20 |ermining| If the | |00000110| 53 70 65 65 63 68 20 4d | 61 6e 61 67 65 72 20 49 |Speech M|anager I| |00000120| 73 20 41 76 61 69 6c 61 | 62 6c 65 20 20 20 34 0d |s Availa|ble 4.| |00000130| 57 68 69 63 68 20 56 65 | 72 73 69 6f 6e 20 6f 66 |Which Ve|rsion of| |00000140| 20 74 68 65 20 53 70 65 | 65 63 68 20 4d 61 6e 61 | the Spe|ech Mana| |00000150| 67 65 72 20 49 73 20 52 | 75 6e 6e 69 6e 67 3f 20 |ger Is R|unning? | |00000160| 20 20 35 0d 4d 61 6b 69 | 6e 67 20 53 6f 6d 65 20 | 5.Maki|ng Some | |00000170| 4e 6f 69 73 65 20 20 20 | 35 0d 44 65 74 65 72 6d |Noise |5.Determ| |00000180| 69 6e 69 6e 67 20 49 66 | 20 53 70 65 61 6b 69 6e |ining If| Speakin| |00000190| 67 20 49 73 20 43 6f 6d | 70 6c 65 74 65 20 20 20 |g Is Com|plete | |000001a0| 36 0d 41 20 53 69 6d 70 | 6c 65 20 45 78 61 6d 70 |6.A Simp|le Examp| |000001b0| 6c 65 20 20 20 36 0d 45 | 73 73 65 6e 74 69 61 6c |le 6.E|ssential| |000001c0| 20 43 61 6c 6c 73 d1 53 | 69 6d 70 6c 65 20 61 6e | Calls.S|imple an| |000001d0| 64 20 55 73 65 66 75 6c | 20 20 20 37 0d 57 6f 72 |d Useful| 7.Wor| |000001e0| 6b 69 6e 67 20 57 69 74 | 68 20 56 6f 69 63 65 73 |king Wit|h Voices| |000001f0| 20 20 20 37 0d 4d 61 6e | 61 67 69 6e 67 20 43 6f | 7.Man|aging Co| |00000200| 6e 6e 65 63 74 69 6f 6e | 73 20 74 6f 20 53 70 65 |nnection|s to Spe| |00000210| 65 63 68 20 53 79 6e 74 | 68 65 73 69 7a 65 72 73 |ech Synt|hesizers| |00000220| 20 20 20 31 31 0d 53 74 | 61 72 74 69 6e 67 20 61 | 11.St|arting a| |00000230| 6e 64 20 53 74 6f 70 70 | 69 6e 67 20 53 70 65 65 |nd Stopp|ing Spee| |00000240| 63 68 20 20 20 31 33 0d | 55 73 69 6e 67 20 42 61 |ch 13.|Using Ba| |00000250| 73 69 63 20 53 70 65 65 | 63 68 20 43 6f 6e 74 72 |sic Spee|ch Contr| |00000260| 6f 6c 73 20 20 20 31 34 | 0d 50 75 74 74 69 6e 67 |ols 14|.Putting| |00000270| 20 49 74 20 41 6c 6c 20 | 54 6f 67 65 74 68 65 72 | It All |Together| |00000280| 20 20 20 31 37 0d 41 64 | 76 61 6e 63 65 64 20 52 | 17.Ad|vanced R| |00000290| 6f 75 74 69 6e 65 73 20 | 20 20 31 38 0d 41 64 76 |outines | 18.Adv| |000002a0| 61 6e 63 65 64 20 53 70 | 65 65 63 68 20 43 6f 6e |anced Sp|eech Con| |000002b0| 74 72 6f 6c 73 20 20 20 | 31 39 0d 43 6f 6e 76 65 |trols |19.Conve| |000002c0| 72 74 69 6e 67 20 54 65 | 78 74 20 49 6e 74 6f 20 |rting Te|xt Into | |000002d0| 50 68 6f 6e 65 6d 65 73 | 20 20 20 32 33 0d 47 65 |Phonemes| 23.Ge| |000002e0| 74 74 69 6e 67 20 49 6e | 66 6f 72 6d 61 74 69 6f |tting In|formatio| |000002f0| 6e 20 41 62 6f 75 74 20 | 61 20 53 70 65 65 63 68 |n About |a Speech| |00000300| 20 43 68 61 6e 6e 65 6c | 20 20 20 32 34 0d 41 64 | Channel| 24.Ad| |00000310| 76 61 6e 63 65 64 20 43 | 6f 6e 74 72 6f 6c 20 52 |vanced C|ontrol R| |00000320| 6f 75 74 69 6e 65 73 20 | 20 20 33 30 0d 41 70 70 |outines | 30.App| |00000330| 6c 69 63 61 74 69 6f 6e | 2d 44 65 66 69 6e 65 64 |lication|-Defined| |00000340| 20 50 72 6f 6e 75 6e 63 | 69 61 74 69 6f 6e 20 44 | Pronunc|iation D| |00000350| 69 63 74 69 6f 6e 61 72 | 69 65 73 20 20 20 33 36 |ictionar|ies 36| |00000360| 0d 41 73 73 6f 63 69 61 | 74 69 6e 67 20 61 20 44 |.Associa|ting a D| |00000370| 69 63 74 69 6f 6e 61 72 | 79 20 57 69 74 68 20 61 |ictionar|y With a| |00000380| 20 53 70 65 65 63 68 20 | 43 68 61 6e 6e 65 6c 20 | Speech |Channel | |00000390| 20 20 33 37 0d 50 72 6f | 6e 75 6e 63 69 61 74 69 | 37.Pro|nunciati| |000003a0| 6f 6e 20 44 69 63 74 69 | 6f 6e 61 72 79 20 44 61 |on Dicti|onary Da| |000003b0| 74 61 20 46 6f 72 6d 61 | 74 20 20 20 33 38 0d 43 |ta Forma|t 38.C| |000003c0| 72 65 61 74 69 6e 67 20 | 61 6e 64 20 45 64 69 74 |reating |and Edit| |000003d0| 69 6e 67 20 44 69 63 74 | 69 6f 6e 61 72 69 65 73 |ing Dict|ionaries| |000003e0| 20 20 20 33 39 0d 41 64 | 76 61 6e 63 65 64 20 56 | 39.Ad|vanced V| |000003f0| 6f 69 63 65 20 49 6e 66 | 6f 72 6d 61 74 69 6f 6e |oice Inf|ormation| |00000400| 20 52 6f 75 74 69 6e 65 | 73 20 20 20 33 39 0d 45 | Routine|s 39.E| |00000410| 6d 62 65 64 64 65 64 20 | 53 70 65 65 63 68 20 43 |mbedded |Speech C| |00000420| 6f 6d 6d 61 6e 64 73 20 | 20 20 34 30 0d 45 6d 62 |ommands | 40.Emb| |00000430| 65 64 64 65 64 20 53 70 | 65 65 63 68 20 43 6f 6d |edded Sp|eech Com| |00000440| 6d 61 6e 64 20 53 79 6e | 74 61 78 20 20 20 34 31 |mand Syn|tax 41| |00000450| 0d 45 6d 62 65 64 64 65 | 64 20 53 70 65 65 63 68 |.Embedde|d Speech| |00000460| 20 43 6f 6d 6d 61 6e 64 | 20 53 65 74 20 20 20 34 | Command| Set 4| |00000470| 32 0d 45 6d 62 65 64 64 | 65 64 20 53 70 65 65 63 |2.Embedd|ed Speec| |00000480| 68 20 43 6f 6d 6d 61 6e | 64 20 45 72 72 6f 72 20 |h Comman|d Error | |00000490| 52 65 70 6f 72 74 69 6e | 67 20 20 20 34 35 0d 53 |Reportin|g 45.S| |000004a0| 75 6d 6d 61 72 79 20 6f | 66 20 50 68 6f 6e 65 6d |ummary o|f Phonem| |000004b0| 65 73 20 61 6e 64 20 50 | 72 6f 73 6f 64 69 63 20 |es and P|rosodic | |000004c0| 43 6f 6e 74 72 6f 6c 73 | 20 20 20 34 35 0d 53 75 |Controls| 45.Su| |000004d0| 6d 6d 61 72 79 20 6f 66 | 20 74 68 65 20 53 70 65 |mmary of| the Spe| |000004e0| 65 63 68 20 4d 61 6e 61 | 67 65 72 20 20 20 34 39 |ech Mana|ger 49| |000004f0| 0d 54 68 69 73 20 64 6f | 63 75 6d 65 6e 74 20 64 |.This do|cument d| |00000500| 65 73 63 72 69 62 65 73 | 20 74 68 65 20 41 70 70 |escribes| the App| |00000510| 6c 65 a8 20 53 70 65 65 | 63 68 20 4d 61 6e 61 67 |le. Spee|ch Manag| |00000520| 65 72 2c 20 77 68 69 63 | 68 20 70 72 6f 76 69 64 |er, whic|h provid| |00000530| 65 73 20 61 20 73 74 61 | 6e 64 61 72 64 69 7a 65 |es a sta|ndardize| |00000540| 64 20 6d 65 74 68 6f 64 | 20 66 6f 72 20 4d 61 63 |d method| for Mac| |00000550| 69 6e 74 6f 73 68 a8 20 | 61 70 70 6c 69 63 61 74 |intosh. |applicat| |00000560| 69 6f 6e 73 20 74 6f 20 | 67 65 6e 65 72 61 74 65 |ions to |generate| |00000570| 20 73 79 6e 74 68 65 73 | 69 7a 65 64 20 73 70 65 | synthes|ized spe| |00000580| 65 63 68 2e 0d 54 68 65 | 20 64 6f 63 75 6d 65 6e |ech..The| documen| |00000590| 74 20 70 72 6f 76 69 64 | 65 73 20 61 6e 20 6f 76 |t provid|es an ov| |000005a0| 65 72 76 69 65 77 20 6f | 66 20 74 68 65 20 53 70 |erview o|f the Sp| |000005b0| 65 65 63 68 20 4d 61 6e | 61 67 65 72 20 66 6f 6c |eech Man|ager fol| |000005c0| 6c 6f 77 65 64 20 62 79 | 20 67 65 6e 65 72 61 6c |lowed by| general| |000005d0| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 61 62 6f | informa|tion abo| |000005e0| 75 74 20 67 65 6e 65 72 | 61 74 69 6e 67 20 73 70 |ut gener|ating sp| |000005f0| 65 65 63 68 20 66 72 6f | 6d 20 74 65 78 74 2e 20 |eech fro|m text. | |00000600| 54 68 65 20 6e 65 63 65 | 73 73 61 72 79 20 69 6e |The nece|ssary in| |00000610| 66 6f 72 6d 61 74 69 6f | 6e 20 61 6e 64 20 63 61 |formatio|n and ca| |00000620| 6c 6c 73 20 6e 65 65 64 | 65 64 20 62 79 20 61 6c |lls need|ed by al| |00000630| 6c 20 74 65 78 74 2d 74 | 6f 2d 73 70 65 65 63 68 |l text-t|o-speech| |00000640| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 73 20 61 72 | applica|tions ar| |00000650| 65 20 67 69 76 65 6e 20 | 6e 65 78 74 2c 20 66 6f |e given |next, fo| |00000660| 6c 6c 6f 77 65 64 20 62 | 79 20 61 20 73 69 6d 70 |llowed b|y a simp| |00000670| 6c 65 20 65 78 61 6d 70 | 6c 65 20 6f 66 20 73 70 |le examp|le of sp| |00000680| 65 65 63 68 20 67 65 6e | 65 72 61 74 69 6f 6e 2e |eech gen|eration.| |00000690| 20 4d 6f 72 65 20 61 64 | 76 61 6e 63 65 64 20 63 | More ad|vanced c| |000006a0| 61 6c 6c 73 20 61 6e 64 | 20 73 70 65 63 69 61 6c |alls and| special| |000006b0| 2d 70 75 72 70 6f 73 65 | 20 72 6f 75 74 69 6e 65 |-purpose| routine| |000006c0| 73 20 61 72 65 20 64 65 | 73 63 72 69 62 65 64 20 |s are de|scribed | |000006d0| 6c 61 73 74 2e 0d 0d 53 | 70 65 65 63 68 20 4d 61 |last...S|peech Ma| |000006e0| 6e 61 67 65 72 20 4f 76 | 65 72 76 69 65 77 0d 0d |nager Ov|erview..| |000006f0| 41 20 63 6f 6d 70 6c 65 | 74 65 20 73 79 73 74 65 |A comple|te syste| |00000700| 6d 20 66 6f 72 20 73 70 | 65 65 63 68 20 73 79 6e |m for sp|eech syn| |00000710| 74 68 65 73 69 73 20 63 | 6f 6e 73 69 73 74 73 20 |thesis c|onsists | |00000720| 6f 66 20 74 68 65 20 65 | 6c 65 6d 65 6e 74 73 20 |of the e|lements | |00000730| 73 68 6f 77 6e 20 69 6e | 20 46 69 67 75 72 65 20 |shown in| Figure | |00000740| 31 2d 31 2e 0d 46 69 67 | 75 72 65 20 31 2d 31 09 |1-1..Fig|ure 1-1.| |00000750| 53 70 65 65 63 68 20 73 | 79 6e 74 68 65 73 69 73 |Speech s|ynthesis| |00000760| 20 63 6f 6d 70 6f 6e 65 | 6e 74 73 0d 0d 41 6e 20 | compone|nts..An | |00000770| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 63 61 6c 6c |applicat|ion call| |00000780| 73 20 72 6f 75 74 69 6e | 65 73 20 69 6e 20 74 68 |s routin|es in th| |00000790| 65 20 53 70 65 65 63 68 | 20 4d 61 6e 61 67 65 72 |e Speech| Manager| |000007a0| 20 74 6f 20 63 6f 6e 76 | 65 72 74 20 63 68 61 72 | to conv|ert char| |000007b0| 61 63 74 65 72 20 73 74 | 72 69 6e 67 73 20 69 6e |acter st|rings in| |000007c0| 74 6f 20 73 70 65 65 63 | 68 20 61 6e 64 20 74 6f |to speec|h and to| |000007d0| 20 61 64 6a 75 73 74 20 | 76 61 72 69 6f 75 73 20 | adjust |various | |000007e0| 70 61 72 61 6d 65 74 65 | 72 73 20 74 68 61 74 20 |paramete|rs that | |000007f0| 61 66 66 65 63 74 20 74 | 68 65 20 71 75 61 6c 69 |affect t|he quali| |00000800| 74 79 20 6f 72 20 63 68 | 61 72 61 63 74 65 72 20 |ty or ch|aracter | |00000810| 6f 66 20 74 68 65 20 73 | 70 6f 6b 65 6e 20 6f 75 |of the s|poken ou| |00000820| 74 70 75 74 2e 20 54 68 | 65 20 53 70 65 65 63 68 |tput. Th|e Speech| |00000830| 20 4d 61 6e 61 67 65 72 | 20 69 73 20 72 65 73 70 | Manager| is resp| |00000840| 6f 6e 73 69 62 6c 65 20 | 66 6f 72 20 64 69 73 70 |onsible |for disp| |00000850| 61 74 63 68 69 6e 67 20 | 74 68 65 73 65 20 72 65 |atching |these re| |00000860| 71 75 65 73 74 73 20 74 | 6f 20 61 20 73 70 65 65 |quests t|o a spee| |00000870| 63 68 20 73 79 6e 74 68 | 65 73 69 7a 65 72 2e 20 |ch synth|esizer. | |00000880| 54 68 65 20 73 70 65 65 | 63 68 20 73 79 6e 74 68 |The spee|ch synth| |00000890| 65 73 69 7a 65 72 20 63 | 6f 6e 76 65 72 74 73 20 |esizer c|onverts | |000008a0| 74 68 65 20 74 65 78 74 | 20 69 6e 74 6f 20 73 6f |the text| into so| |000008b0| 75 6e 64 20 61 6e 64 20 | 63 72 65 61 74 65 73 20 |und and |creates | |000008c0| 74 68 65 20 61 63 74 75 | 61 6c 20 61 75 64 69 6f |the actu|al audio| |000008d0| 20 6f 75 74 70 75 74 2e | 20 0d 54 68 65 20 41 70 | output.| .The Ap| |000008e0| 70 6c 65 2d 73 75 70 70 | 6c 69 65 64 20 76 6f 69 |ple-supp|lied voi| |000008f0| 63 65 73 2c 20 70 72 6f | 6e 75 6e 63 69 61 74 69 |ces, pro|nunciati| |00000900| 6f 6e 20 64 69 63 74 69 | 6f 6e 61 72 69 65 73 2c |on dicti|onaries,| |00000910| 20 61 6e 64 20 73 70 65 | 65 63 68 20 73 79 6e 74 | and spe|ech synt| |00000920| 68 65 73 69 7a 65 72 20 | 6d 61 79 20 72 65 73 69 |hesizer |may resi| |00000930| 64 65 20 69 6e 20 61 20 | 73 69 6e 67 6c 65 20 66 |de in a |single f| |00000940| 69 6c 65 20 6f 72 20 69 | 6e 20 73 65 70 61 72 61 |ile or i|n separa| |00000950| 74 65 20 66 69 6c 65 73 | 2e 20 54 68 65 73 65 20 |te files|. These | |00000960| 66 69 6c 65 73 20 61 72 | 65 20 63 6c 65 61 72 6c |files ar|e clearl| |00000970| 79 20 69 64 65 6e 74 69 | 66 69 61 62 6c 65 20 61 |y identi|fiable a| |00000980| 73 20 53 70 65 65 63 68 | 20 4d 61 6e 61 67 65 72 |s Speech| Manager| |00000990| d0 72 65 6c 61 74 65 64 | 20 66 69 6c 65 73 20 61 |.related| files a| |000009a0| 6e 64 20 61 72 65 20 69 | 6e 73 74 61 6c 6c 65 64 |nd are i|nstalled| |000009b0| 20 61 6e 64 20 72 65 6d | 6f 76 65 64 20 62 79 20 | and rem|oved by | |000009c0| 62 65 69 6e 67 20 64 72 | 61 67 67 65 64 20 69 6e |being dr|agged in| |000009d0| 74 6f 20 6f 72 20 6f 75 | 74 20 6f 66 20 74 68 65 |to or ou|t of the| |000009e0| 20 53 79 73 74 65 6d 20 | 46 6f 6c 64 65 72 2e 20 | System |Folder. | |000009f0| 41 64 64 69 74 69 6f 6e | 61 6c 20 76 6f 69 63 65 |Addition|al voice| |00000a00| 73 20 63 61 6e 20 62 65 | 20 70 72 6f 76 69 64 65 |s can be| provide| |00000a10| 64 20 62 79 20 62 75 6e | 64 6c 69 6e 67 20 74 68 |d by bun|dling th| |00000a20| 65 20 72 65 73 6f 75 72 | 63 65 73 20 69 6e 20 74 |e resour|ces in t| |00000a30| 68 65 20 72 65 73 6f 75 | 72 63 65 20 66 6f 72 6b |he resou|rce fork| |00000a40| 73 20 6f 66 20 73 70 65 | 63 69 66 69 63 20 61 70 |s of spe|cific ap| |00000a50| 70 6c 69 63 61 74 69 6f | 6e 73 2e 20 54 68 65 73 |plicatio|ns. Thes| |00000a60| 65 20 72 65 73 6f 75 72 | 63 65 73 20 61 72 65 20 |e resour|ces are | |00000a70| 63 6f 6e 73 69 64 65 72 | 65 64 20 70 72 69 76 61 |consider|ed priva| |00000a80| 74 65 20 74 6f 20 74 68 | 61 74 20 70 61 72 74 69 |te to th|at parti| |00000a90| 63 75 6c 61 72 20 61 70 | 70 6c 69 63 61 74 69 6f |cular ap|plicatio| |00000aa0| 6e 2e 20 49 74 20 69 73 | 20 75 70 20 74 6f 20 74 |n. It is| up to t| |00000ab0| 68 65 20 69 6e 64 69 76 | 69 64 75 61 6c 20 64 65 |he indiv|idual de| |00000ac0| 76 65 6c 6f 70 65 72 73 | 20 74 6f 20 64 65 63 69 |velopers| to deci| |00000ad0| 64 65 20 77 68 65 74 68 | 65 72 20 74 68 65 20 76 |de wheth|er the v| |00000ae0| 6f 69 63 65 20 72 65 73 | 6f 75 72 63 65 73 20 74 |oice res|ources t| |00000af0| 68 65 79 20 70 72 6f 76 | 69 64 65 20 61 72 65 20 |hey prov|ide are | |00000b00| 75 73 61 62 6c 65 20 6f | 6e 20 61 20 73 79 73 74 |usable o|n a syst| |00000b10| 65 6d 77 69 64 65 20 62 | 61 73 69 73 20 6f 72 20 |emwide b|asis or | |00000b20| 6f 6e 6c 79 20 66 72 6f | 6d 20 77 69 74 68 69 6e |only fro|m within| |00000b30| 20 74 68 65 69 72 20 61 | 70 70 6c 69 63 61 74 69 | their a|pplicati| |00000b40| 6f 6e 73 2e 20 0d 49 6e | 20 74 68 65 20 66 69 72 |ons. .In| the fir| |00000b50| 73 74 20 72 65 6c 65 61 | 73 65 20 6f 66 20 74 68 |st relea|se of th| |00000b60| 65 20 53 70 65 65 63 68 | 20 4d 61 6e 61 67 65 72 |e Speech| Manager| |00000b70| 2c 20 70 72 6f 6e 75 6e | 63 69 61 74 69 6f 6e 20 |, pronun|ciation | |00000b80| 64 69 63 74 69 6f 6e 61 | 72 69 65 73 20 61 72 65 |dictiona|ries are| |00000b90| 20 6d 61 6e 61 67 65 64 | 20 65 6e 74 69 72 65 6c | managed| entirel| |00000ba0| 79 20 62 79 20 74 68 65 | 20 61 70 70 6c 69 63 61 |y by the| applica| |00000bb0| 74 69 6f 6e 2e 20 54 68 | 65 20 61 70 70 6c 69 63 |tion. Th|e applic| |00000bc0| 61 74 69 6f 6e 20 69 73 | 20 66 72 65 65 20 74 6f |ation is| free to| |00000bd0| 20 73 74 6f 72 65 20 64 | 69 63 74 69 6f 6e 61 72 | store d|ictionar| |00000be0| 69 65 73 20 69 6e 20 65 | 69 74 68 65 72 20 74 68 |ies in e|ither th| |00000bf0| 65 20 72 65 73 6f 75 72 | 63 65 20 6f 72 20 74 68 |e resour|ce or th| |00000c00| 65 20 64 61 74 61 20 66 | 6f 72 6b 20 6f 66 20 61 |e data f|ork of a| |00000c10| 20 66 69 6c 65 2e 20 54 | 68 65 20 61 70 70 6c 69 | file. T|he appli| |00000c20| 63 61 74 69 6f 6e 20 69 | 73 20 72 65 73 70 6f 6e |cation i|s respon| |00000c30| 73 69 62 6c 65 20 66 6f | 72 20 6c 6f 61 64 69 6e |sible fo|r loadin| |00000c40| 67 20 74 68 65 20 69 6e | 64 69 76 69 64 75 61 6c |g the in|dividual| |00000c50| 20 64 69 63 74 69 6f 6e | 61 72 69 65 73 20 69 6e | diction|aries in| |00000c60| 74 6f 20 52 41 4d 20 61 | 6e 64 20 74 68 65 6e 20 |to RAM a|nd then | |00000c70| 70 61 73 73 69 6e 67 20 | 61 20 68 61 6e 64 6c 65 |passing |a handle| |00000c80| 20 74 6f 20 74 68 65 20 | 64 69 63 74 69 6f 6e 61 | to the |dictiona| |00000c90| 72 79 20 64 61 74 61 20 | 74 6f 20 74 68 65 20 53 |ry data |to the S| |00000ca0| 70 65 65 63 68 20 4d 61 | 6e 61 67 65 72 2e 0d 41 |peech Ma|nager..A| |00000cb0| 70 70 6c 69 63 61 74 69 | 6f 6e 73 20 74 68 61 74 |pplicati|ons that| |00000cc0| 20 75 73 65 20 74 68 65 | 20 53 70 65 65 63 68 20 | use the| Speech | |00000cd0| 4d 61 6e 61 67 65 72 20 | 6d 75 73 74 20 70 72 6f |Manager |must pro| |00000ce0| 76 69 64 65 20 74 68 65 | 69 72 20 6f 77 6e 20 68 |vide the|ir own h| |00000cf0| 75 6d 61 6e 20 69 6e 74 | 65 72 66 61 63 65 20 66 |uman int|erface f| |00000d00| 6f 72 20 73 65 6c 65 63 | 74 69 6e 67 20 76 6f 69 |or selec|ting voi| |00000d10| 63 65 73 20 61 6e 64 2f | 6f 72 20 63 6f 6e 74 72 |ces and/|or contr| |00000d20| 6f 6c 6c 69 6e 67 20 6f | 74 68 65 72 20 73 70 65 |olling o|ther spe| |00000d30| 65 63 68 20 63 68 61 72 | 61 63 74 65 72 69 73 74 |ech char|acterist| |00000d40| 69 63 73 2e 20 49 66 20 | 76 6f 69 63 65 73 20 61 |ics. If |voices a| |00000d50| 72 65 20 70 72 6f 76 69 | 64 65 64 20 69 6e 20 73 |re provi|ded in s| |00000d60| 65 70 61 72 61 74 65 20 | 66 69 6c 65 73 2c 20 74 |eparate |files, t| |00000d70| 68 65 20 73 70 65 65 63 | 68 20 73 79 6e 74 68 65 |he speec|h synthe| |00000d80| 73 69 7a 65 72 20 64 65 | 76 65 6c 6f 70 65 72 20 |sizer de|veloper | |00000d90| 69 73 20 72 65 73 70 6f | 6e 73 69 62 6c 65 20 66 |is respo|nsible f| |00000da0| 6f 72 20 70 72 6f 76 69 | 64 69 6e 67 20 61 20 6d |or provi|ding a m| |00000db0| 65 74 68 6f 64 20 66 6f | 72 20 69 6e 73 74 61 6c |ethod fo|r instal| |00000dc0| 6c 69 6e 67 20 74 68 65 | 73 65 20 72 65 73 6f 75 |ling the|se resou| |00000dd0| 72 63 65 73 20 69 6e 74 | 6f 20 74 68 65 20 53 79 |rces int|o the Sy| |00000de0| 73 74 65 6d 20 46 6f 6c | 64 65 72 20 6f 72 20 45 |stem Fol|der or E| |00000df0| 78 74 65 6e 73 69 6f 6e | 73 20 66 6f 6c 64 65 72 |xtension|s folder| |00000e00| 2e 20 54 68 65 20 63 6f | 6d 70 75 74 65 72 20 6d |. The co|mputer m| |00000e10| 75 73 74 20 62 65 20 72 | 65 62 6f 6f 74 65 64 20 |ust be r|ebooted | |00000e20| 61 66 74 65 72 20 73 70 | 65 65 63 68 20 73 79 6e |after sp|eech syn| |00000e30| 74 68 65 73 69 7a 65 72 | 73 20 61 72 65 20 61 64 |thesizer|s are ad| |00000e40| 64 65 64 20 74 6f 20 6f | 72 20 72 65 6d 6f 76 65 |ded to o|r remove| |00000e50| 64 20 66 72 6f 6d 20 74 | 68 65 20 53 79 73 74 65 |d from t|he Syste| |00000e60| 6d 20 46 6f 6c 64 65 72 | 20 66 6f 72 20 74 68 65 |m Folder| for the| |00000e70| 20 64 65 73 69 72 65 64 | 20 63 68 61 6e 67 65 73 | desired| changes| |00000e80| 20 74 6f 20 62 65 20 72 | 65 63 6f 67 6e 69 7a 65 | to be r|ecognize| |00000e90| 64 2e 0d 0d 53 70 65 65 | 63 68 20 4d 61 6e 61 67 |d...Spee|ch Manag| |00000ea0| 65 72 20 43 6f 6e 63 65 | 70 74 73 0d 0d 4f 6e 20 |er Conce|pts..On | |00000eb0| 61 20 73 69 6d 70 6c 65 | 20 6c 65 76 65 6c 2c 20 |a simple| level, | |00000ec0| 73 70 65 65 63 68 20 73 | 79 6e 74 68 65 73 69 73 |speech s|ynthesis| |00000ed0| 20 66 72 6f 6d 20 74 65 | 78 74 20 69 6e 70 75 74 | from te|xt input| |00000ee0| 20 69 73 20 61 20 74 77 | 6f 2d 73 74 61 67 65 20 | is a tw|o-stage | |00000ef0| 70 72 6f 63 65 73 73 2e | 20 46 69 72 73 74 2c 20 |process.| First, | |00000f00| 70 6c 61 69 6e 2d 6c 61 | 6e 67 75 61 67 65 20 45 |plain-la|nguage E| |00000f10| 6e 67 6c 69 73 68 20 74 | 65 78 74 20 69 73 20 63 |nglish t|ext is c| |00000f20| 6f 6e 76 65 72 74 65 64 | 20 69 6e 74 6f 20 70 68 |onverted| into ph| |00000f30| 6f 6e 65 6d 69 63 20 72 | 65 70 72 65 73 65 6e 74 |onemic r|epresent| |00000f40| 61 74 69 6f 6e 73 20 66 | 6f 72 20 74 68 65 20 69 |ations f|or the i| |00000f50| 6e 64 69 76 69 64 75 61 | 6c 20 77 6f 72 64 73 2e |ndividua|l words.| |00000f60| 20 50 68 6f 6e 65 6d 65 | 73 20 73 74 61 6e 64 20 | Phoneme|s stand | |00000f70| 66 6f 72 20 73 70 65 63 | 69 66 69 63 20 73 6f 75 |for spec|ific sou| |00000f80| 6e 64 73 3b 20 66 6f 72 | 20 61 20 63 6f 6d 70 6c |nds; for| a compl| |00000f90| 65 74 65 20 65 78 70 6c | 61 6e 61 74 69 6f 6e 2c |ete expl|anation,| |00000fa0| 20 73 65 65 20 d2 53 75 | 6d 6d 61 72 79 20 6f 66 | see .Su|mmary of| |00000fb0| 20 50 68 6f 6e 65 6d 65 | 73 20 61 6e 64 20 50 72 | Phoneme|s and Pr| |00000fc0| 6f 73 6f 64 69 63 20 43 | 6f 6e 74 72 6f 6c 73 2c |osodic C|ontrols,| |00000fd0| d3 20 6c 61 74 65 72 20 | 69 6e 20 74 68 69 73 20 |. later |in this | |00000fe0| 64 6f 63 75 6d 65 6e 74 | 2e 20 54 68 65 20 72 65 |document|. The re| |00000ff0| 73 75 6c 74 69 6e 67 20 | 73 65 71 75 65 6e 63 65 |sulting |sequence| |00001000| 20 6f 66 20 70 68 6f 6e | 65 6d 65 73 20 69 73 20 | of phon|emes is | |00001010| 63 6f 6e 76 65 72 74 65 | 64 20 69 6e 74 6f 20 61 |converte|d into a| |00001020| 75 64 69 62 6c 65 20 73 | 6f 75 6e 64 73 20 62 79 |udible s|ounds by| |00001030| 20 6d 61 70 70 69 6e 67 | 20 6f 66 20 74 68 65 20 | mapping| of the | |00001040| 69 6e 64 69 76 69 64 75 | 61 6c 20 70 68 6f 6e 65 |individu|al phone| |00001050| 6d 65 73 20 74 6f 20 61 | 20 73 65 72 69 65 73 20 |mes to a| series | |00001060| 6f 66 20 77 61 76 65 66 | 6f 72 6d 73 2c 20 77 68 |of wavef|orms, wh| |00001070| 69 63 68 20 61 72 65 20 | 73 65 6e 74 20 74 6f 20 |ich are |sent to | |00001080| 74 68 65 20 73 6f 75 6e | 64 20 68 61 72 64 77 61 |the soun|d hardwa| |00001090| 72 65 20 74 6f 20 62 65 | 20 70 6c 61 79 65 64 2e |re to be| played.| |000010a0| 0d 49 6e 20 72 65 61 6c | 69 74 79 2c 20 65 61 63 |.In real|ity, eac| |000010b0| 68 20 73 74 61 67 65 20 | 69 73 20 6d 6f 72 65 20 |h stage |is more | |000010c0| 63 6f 6d 70 6c 69 63 61 | 74 65 64 20 74 68 61 6e |complica|ted than| |000010d0| 20 74 68 69 73 20 64 65 | 73 63 72 69 70 74 69 6f | this de|scriptio| |000010e0| 6e 20 73 75 67 67 65 73 | 74 73 2e 20 46 6f 72 20 |n sugges|ts. For | |000010f0| 65 78 61 6d 70 6c 65 2c | 20 64 75 72 69 6e 67 20 |example,| during | |00001100| 74 68 65 20 74 65 78 74 | 2d 74 6f 2d 70 68 6f 6e |the text|-to-phon| |00001110| 65 6d 65 20 63 6f 6e 76 | 65 72 73 69 6f 6e 20 73 |eme conv|ersion s| |00001120| 74 61 67 65 2c 20 6e 75 | 6d 62 65 72 20 73 74 72 |tage, nu|mber str| |00001130| 69 6e 67 73 2c 20 61 62 | 62 72 65 76 69 61 74 69 |ings, ab|breviati| |00001140| 6f 6e 73 2c 20 61 6e 64 | 20 73 70 65 63 69 61 6c |ons, and| special| |00001150| 20 73 79 6d 62 6f 6c 73 | 20 6d 75 73 74 20 62 65 | symbols| must be| |00001160| 20 64 65 74 65 63 74 65 | 64 20 61 6e 64 20 63 6f | detecte|d and co| |00001170| 6e 76 65 72 74 65 64 20 | 69 6e 74 6f 20 61 70 70 |nverted |into app| |00001180| 72 6f 70 72 69 61 74 65 | 20 77 6f 72 64 73 20 62 |ropriate| words b| |00001190| 65 66 6f 72 65 20 62 65 | 69 6e 67 20 63 6f 6e 76 |efore be|ing conv| |000011a0| 65 72 74 65 64 20 69 6e | 74 6f 20 70 68 6f 6e 65 |erted in|to phone| |000011b0| 6d 65 73 2e 20 57 68 65 | 6e 20 61 20 73 65 6e 74 |mes. Whe|n a sent| |000011c0| 65 6e 63 65 20 73 75 63 | 68 20 61 73 20 d2 48 65 |ence suc|h as .He| |000011d0| 20 65 61 72 6e 65 64 20 | 6f 76 65 72 20 24 32 2c | earned |over $2,| |000011e0| 30 30 30 2c 30 30 30 20 | 69 6e 20 31 39 39 30 d3 |000,000 |in 1990.| |000011f0| 20 69 73 20 73 70 6f 6b | 65 6e 2c 20 69 74 20 77 | is spok|en, it w| |00001200| 6f 75 6c 64 20 6e 6f 72 | 6d 61 6c 6c 79 20 62 65 |ould nor|mally be| |00001210| 20 70 72 65 66 65 72 61 | 62 6c 65 20 74 6f 20 73 | prefera|ble to s| |00001220| 61 79 20 d2 48 65 20 65 | 61 72 6e 65 64 20 6f 76 |ay .He e|arned ov| |00001230| 65 72 20 74 77 6f 20 6d | 69 6c 6c 69 6f 6e 20 64 |er two m|illion d| |00001240| 6f 6c 6c 61 72 73 20 69 | 6e 20 6e 69 6e 65 74 65 |ollars i|n ninete| |00001250| 65 6e 2d 20 6e 69 6e 65 | 74 79 d3 20 72 61 74 68 |en- nine|ty. rath| |00001260| 65 72 20 74 68 61 6e 20 | d2 48 65 20 65 61 72 6e |er than |.He earn| |00001270| 65 64 20 6f 76 65 72 20 | 64 6f 6c 6c 61 72 2d 73 |ed over |dollar-s| |00001280| 69 67 6e 2c 20 74 77 6f | 2c 20 63 6f 6d 6d 61 2c |ign, two|, comma,| |00001290| 20 7a 65 72 6f 2c 20 7a | 65 72 6f 2c 20 7a 65 72 | zero, z|ero, zer| |000012a0| 6f 2c 20 63 6f 6d 6d 61 | 2c 20 7a 65 72 6f 2c 20 |o, comma|, zero, | |000012b0| 7a 65 72 6f 2c 20 7a 65 | 72 6f 2c 20 69 6e 20 6f |zero, ze|ro, in o| |000012c0| 6e 65 2c 20 6e 69 6e 65 | 2c 20 6e 69 6e 65 2c 20 |ne, nine|, nine, | |000012d0| 7a 65 72 6f 2e d3 20 54 | 6f 20 70 72 6f 64 75 63 |zero.. T|o produc| |000012e0| 65 20 74 68 65 20 64 65 | 73 69 72 65 64 20 73 70 |e the de|sired sp| |000012f0| 6f 6b 65 6e 20 6f 75 74 | 70 75 74 20 61 75 74 6f |oken out|put auto| |00001300| 6d 61 74 69 63 61 6c 6c | 79 2c 20 6b 6e 6f 77 6c |maticall|y, knowl| |00001310| 65 64 67 65 20 6f 66 20 | 74 68 65 73 65 20 73 6f |edge of |these so| |00001320| 72 74 73 20 6f 66 20 63 | 6f 6e 73 74 72 75 63 74 |rts of c|onstruct| |00001330| 69 6f 6e 73 20 69 73 20 | 62 75 69 6c 74 20 69 6e |ions is |built in| |00001340| 74 6f 20 74 68 65 20 73 | 79 6e 74 68 65 73 69 7a |to the s|ynthesiz| |00001350| 65 72 2e 0d 54 68 65 20 | 70 68 6f 6e 65 6d 65 2d |er..The |phoneme-| |00001360| 74 6f 2d 73 6f 75 6e 64 | 20 63 6f 6e 76 65 72 73 |to-sound| convers| |00001370| 69 6f 6e 20 73 74 61 67 | 65 20 69 73 20 61 6c 73 |ion stag|e is als| |00001380| 6f 20 63 6f 6d 70 6c 65 | 78 2e 20 50 68 6f 6e 65 |o comple|x. Phone| |00001390| 6d 65 73 20 62 79 20 74 | 68 65 6d 73 65 6c 76 65 |mes by t|hemselve| |000013a0| 73 20 61 72 65 20 6f 66 | 74 65 6e 20 6e 6f 74 20 |s are of|ten not | |000013b0| 73 75 66 66 69 63 69 65 | 6e 74 20 74 6f 20 64 65 |sufficie|nt to de| |000013c0| 73 63 72 69 62 65 20 74 | 68 65 20 77 61 79 20 61 |scribe t|he way a| |000013d0| 20 77 6f 72 64 20 73 68 | 6f 75 6c 64 20 62 65 20 | word sh|ould be | |000013e0| 70 72 6f 6e 6f 75 6e 63 | 65 64 2e 20 46 6f 72 20 |pronounc|ed. For | |000013f0| 65 78 61 6d 70 6c 65 2c | 20 74 68 65 20 77 6f 72 |example,| the wor| |00001400| 64 20 d2 6f 62 6a 65 63 | 74 d3 20 69 73 20 70 72 |d .objec|t. is pr| |00001410| 6f 6e 6f 75 6e 63 65 64 | 20 64 69 66 66 65 72 65 |onounced| differe| |00001420| 6e 74 6c 79 20 64 65 70 | 65 6e 64 69 6e 67 20 6f |ntly dep|ending o| |00001430| 6e 20 77 68 65 74 68 65 | 72 20 69 74 20 69 73 20 |n whethe|r it is | |00001440| 75 73 65 64 20 61 73 20 | 61 20 6e 6f 75 6e 20 6f |used as |a noun o| |00001450| 72 20 61 20 76 65 72 62 | 2e 20 28 57 68 65 6e 20 |r a verb|. (When | |00001460| 69 74 20 69 73 20 75 73 | 65 64 20 61 73 20 61 20 |it is us|ed as a | |00001470| 6e 6f 75 6e 2c 20 74 68 | 65 20 73 74 72 65 73 73 |noun, th|e stress| |00001480| 20 69 73 20 70 6c 61 63 | 65 64 20 6f 6e 20 74 68 | is plac|ed on th| |00001490| 65 20 66 69 72 73 74 20 | 73 79 6c 6c 61 62 6c 65 |e first |syllable| |000014a0| 2e 20 41 73 20 61 20 76 | 65 72 62 2c 20 74 68 65 |. As a v|erb, the| |000014b0| 20 73 74 72 65 73 73 20 | 69 73 20 70 6c 61 63 65 | stress |is place| |000014c0| 64 20 6f 6e 20 74 68 65 | 20 73 65 63 6f 6e 64 20 |d on the| second | |000014d0| 73 79 6c 6c 61 62 6c 65 | 2e 29 20 49 6e 20 61 64 |syllable|.) In ad| |000014e0| 64 69 74 69 6f 6e 20 74 | 6f 20 73 74 72 65 73 73 |dition t|o stress| |000014f0| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 2c 20 70 68 | informa|tion, ph| |00001500| 6f 6e 65 6d 65 73 20 6d | 75 73 74 20 6f 66 74 65 |onemes m|ust ofte| |00001510| 6e 20 62 65 20 61 75 67 | 6d 65 6e 74 65 64 20 77 |n be aug|mented w| |00001520| 69 74 68 20 70 69 74 63 | 68 2c 20 64 75 72 61 74 |ith pitc|h, durat| |00001530| 69 6f 6e 2c 20 61 6e 64 | 20 6f 74 68 65 72 20 69 |ion, and| other i| |00001540| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 74 6f 20 70 72 |nformati|on to pr| |00001550| 6f 64 75 63 65 20 69 6e | 74 65 6c 6c 69 67 69 62 |oduce in|telligib| |00001560| 6c 65 2c 20 6e 61 74 75 | 72 61 6c 2d 73 6f 75 6e |le, natu|ral-soun| |00001570| 64 69 6e 67 20 73 70 65 | 65 63 68 2e 0d 54 68 65 |ding spe|ech..The| |00001580| 20 73 70 65 65 63 68 20 | 73 79 6e 74 68 65 73 69 | speech |synthesi| |00001590| 7a 65 72 20 68 61 73 20 | 6d 61 6e 79 20 62 75 69 |zer has |many bui| |000015a0| 6c 74 2d 69 6e 20 72 75 | 6c 65 73 20 66 6f 72 20 |lt-in ru|les for | |000015b0| 61 75 74 6f 6d 61 74 69 | 63 61 6c 6c 79 20 63 6f |automati|cally co| |000015c0| 6e 76 65 72 74 69 6e 67 | 20 74 65 78 74 20 69 6e |nverting| text in| |000015d0| 74 6f 20 74 68 65 20 63 | 6f 6d 70 6c 65 78 20 70 |to the c|omplex p| |000015e0| 68 6f 6e 65 6d 69 63 20 | 72 65 70 72 65 73 65 6e |honemic |represen| |000015f0| 74 61 74 69 6f 6e 20 64 | 65 73 63 72 69 62 65 64 |tation d|escribed| |00001600| 20 61 62 6f 76 65 2e 20 | 48 6f 77 65 76 65 72 2c | above. |However,| |00001610| 20 74 68 65 72 65 20 77 | 69 6c 6c 20 61 6c 77 61 | there w|ill alwa| |00001620| 79 73 20 62 65 20 77 6f | 72 64 73 20 61 6e 64 20 |ys be wo|rds and | |00001630| 70 68 72 61 73 65 73 20 | 74 68 61 74 20 61 72 65 |phrases |that are| |00001640| 20 6e 6f 74 20 70 72 6f | 6e 6f 75 6e 63 65 64 20 | not pro|nounced | |00001650| 74 68 65 20 77 61 79 20 | 79 6f 75 20 77 61 6e 74 |the way |you want| |00001660| 2e 20 54 68 65 20 53 70 | 65 65 63 68 20 4d 61 6e |. The Sp|eech Man| |00001670| 61 67 65 72 20 61 6c 6c | 6f 77 73 20 79 6f 75 20 |ager all|ows you | |00001680| 74 6f 20 70 72 6f 76 69 | 64 65 20 72 61 77 20 70 |to provi|de raw p| |00001690| 68 6f 6e 65 6d 69 63 20 | 69 6e 66 6f 72 6d 61 74 |honemic |informat| |000016a0| 69 6f 6e 20 64 69 72 65 | 63 74 6c 79 20 69 6e 20 |ion dire|ctly in | |000016b0| 6f 72 64 65 72 20 74 6f | 20 65 6e 61 62 6c 65 20 |order to| enable | |000016c0| 76 65 72 79 20 70 72 65 | 63 69 73 65 20 63 6f 6e |very pre|cise con| |000016d0| 74 72 6f 6c 20 6f 76 65 | 72 20 74 68 65 20 73 70 |trol ove|r the sp| |000016e0| 6f 6b 65 6e 20 6f 75 74 | 70 75 74 2e 0d 42 79 20 |oken out|put..By | |000016f0| 64 65 66 61 75 6c 74 2c | 20 73 70 65 65 63 68 20 |default,| speech | |00001700| 73 79 6e 74 68 65 73 69 | 7a 65 72 73 20 65 78 70 |synthesi|zers exp| |00001710| 65 63 74 20 69 6e 70 75 | 74 20 69 6e 20 6e 6f 72 |ect inpu|t in nor| |00001720| 6d 61 6c 20 6c 61 6e 67 | 75 61 67 65 20 74 65 78 |mal lang|uage tex| |00001730| 74 2e 20 48 6f 77 65 76 | 65 72 2c 20 75 73 69 6e |t. Howev|er, usin| |00001740| 67 20 74 68 65 20 69 6e | 70 75 74 20 6d 6f 64 65 |g the in|put mode| |00001750| 20 63 6f 6e 74 72 6f 6c | 73 20 6f 66 20 74 68 65 | control|s of the| |00001760| 20 53 70 65 65 63 68 20 | 4d 61 6e 61 67 65 72 2c | Speech |Manager,| |00001770| 20 79 6f 75 20 63 61 6e | 20 74 65 6c 6c 20 74 68 | you can| tell th| |00001780| 65 20 73 79 6e 74 68 65 | 73 69 7a 65 72 20 74 6f |e synthe|sizer to| |00001790| 20 70 72 6f 63 65 73 73 | 20 69 6e 70 75 74 20 74 | process| input t| |000017a0| 65 78 74 20 69 6e 20 72 | 61 77 20 70 68 6f 6e 65 |ext in r|aw phone| |000017b0| 6d 69 63 20 66 6f 72 6d | 2e 20 42 79 20 75 73 69 |mic form|. By usi| |000017c0| 6e 67 20 74 68 65 20 65 | 6d 62 65 64 64 65 64 20 |ng the e|mbedded | |000017d0| 63 6f 6d 6d 61 6e 64 73 | 20 64 65 73 63 72 69 62 |commands| describ| |000017e0| 65 64 20 69 6e 20 74 68 | 65 20 6e 65 78 74 20 73 |ed in th|e next s| |000017f0| 65 63 74 69 6f 6e 2c 20 | 79 6f 75 20 63 61 6e 20 |ection, |you can | |00001800| 65 76 65 6e 20 6d 69 78 | 20 6e 6f 72 6d 61 6c 20 |even mix| normal | |00001810| 6c 61 6e 67 75 61 67 65 | 20 74 65 78 74 20 77 69 |language| text wi| |00001820| 74 68 20 70 68 6f 6e 65 | 6d 69 63 20 74 65 78 74 |th phone|mic text| |00001830| 20 77 69 74 68 69 6e 20 | 61 20 73 69 6e 67 6c 65 | within |a single| |00001840| 20 73 74 72 69 6e 67 20 | 6f 72 20 74 65 78 74 20 | string |or text | |00001850| 62 75 66 66 65 72 2e 0d | 53 65 65 20 d2 53 75 6d |buffer..|See .Sum| |00001860| 6d 61 72 79 20 6f 66 20 | 50 68 6f 6e 65 6d 65 73 |mary of |Phonemes| |00001870| 20 61 6e 64 20 50 72 6f | 73 6f 64 69 63 20 43 6f | and Pro|sodic Co| |00001880| 6e 74 72 6f 6c 73 2c d3 | 20 6c 61 74 65 72 20 69 |ntrols,.| later i| |00001890| 6e 20 74 68 69 73 20 64 | 6f 63 75 6d 65 6e 74 2c |n this d|ocument,| |000018a0| 20 66 6f 72 20 61 20 6c | 69 73 74 69 6e 67 20 6f | for a l|isting o| |000018b0| 66 20 74 68 65 20 70 68 | 6f 6e 65 6d 69 63 20 63 |f the ph|onemic c| |000018c0| 68 61 72 61 63 74 65 72 | 20 73 65 74 20 61 6e 64 |haracter| set and| |000018d0| 20 65 61 63 68 20 63 68 | 61 72 61 63 74 65 72 d5 | each ch|aracter.| |000018e0| 73 20 69 6e 74 65 72 70 | 72 65 74 61 74 69 6f 6e |s interp|retation| |000018f0| 2e 0d 0d 55 73 69 6e 67 | 20 74 68 65 20 53 70 65 |...Using| the Spe| |00001900| 65 63 68 20 4d 61 6e 61 | 67 65 72 0d 0d 54 68 69 |ech Mana|ger..Thi| |00001910| 73 20 73 65 63 74 69 6f | 6e 20 64 65 73 63 72 69 |s sectio|n descri| |00001920| 62 65 73 20 74 68 65 20 | 72 6f 75 74 69 6e 65 73 |bes the |routines| |00001930| 20 75 73 65 64 20 74 6f | 20 61 64 64 20 73 70 65 | used to| add spe| |00001940| 65 63 68 20 73 79 6e 74 | 68 65 73 69 73 20 66 65 |ech synt|hesis fe| |00001950| 61 74 75 72 65 73 20 74 | 6f 20 61 6e 20 61 70 70 |atures t|o an app| |00001960| 6c 69 63 61 74 69 6f 6e | 2e 20 49 74 20 69 73 20 |lication|. It is | |00001970| 6f 72 67 61 6e 69 7a 65 | 64 20 69 6e 74 6f 20 74 |organize|d into t| |00001980| 68 72 65 65 20 73 65 63 | 74 69 6f 6e 73 3a 20 d2 |hree sec|tions: .| |00001990| 47 65 74 74 69 6e 67 20 | 53 74 61 72 74 65 64 d3 |Getting |Started.| |000019a0| 20 28 45 61 73 79 29 2c | 20 d2 45 73 73 65 6e 74 | (Easy),| .Essent| |000019b0| 69 61 6c 20 43 61 6c 6c | 73 d1 53 69 6d 70 6c 65 |ial Call|s.Simple| |000019c0| 20 61 6e 64 20 55 73 65 | 66 75 6c d3 20 28 49 6e | and Use|ful. (In| |000019d0| 74 65 72 6d 65 64 69 61 | 74 65 29 2c 20 61 6e 64 |termedia|te), and| |000019e0| 20 d2 41 64 76 61 6e 63 | 65 64 20 52 6f 75 74 69 | .Advanc|ed Routi| |000019f0| 6e 65 73 2e d3 0d 47 65 | 74 74 69 6e 67 20 53 74 |nes...Ge|tting St| |00001a00| 61 72 74 65 64 0d 0d 49 | 66 20 79 6f 75 d5 72 65 |arted..I|f you.re| |00001a10| 20 6a 75 73 74 20 67 65 | 74 74 69 6e 67 20 73 74 | just ge|tting st| |00001a20| 61 72 74 65 64 20 77 69 | 74 68 20 74 65 78 74 2d |arted wi|th text-| |00001a30| 74 6f 2d 73 70 65 65 63 | 68 20 63 6f 6e 76 65 72 |to-speec|h conver| |00001a40| 73 69 6f 6e 20 75 73 69 | 6e 67 20 74 68 65 20 53 |sion usi|ng the S| |00001a50| 70 65 65 63 68 20 4d 61 | 6e 61 67 65 72 2c 20 74 |peech Ma|nager, t| |00001a60| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 72 6f 75 |he follo|wing rou| |00001a70| 74 69 6e 65 73 20 77 69 | 6c 6c 20 67 65 74 20 79 |tines wi|ll get y| |00001a80| 6f 75 20 75 70 20 61 6e | 64 20 72 75 6e 6e 69 6e |ou up an|d runnin| |00001a90| 67 20 77 69 74 68 20 6d | 69 6e 69 6d 61 6c 20 65 |g with m|inimal e| |00001aa0| 66 66 6f 72 74 2e 20 49 | 66 20 79 6f 75 d5 72 65 |ffort. I|f you.re| |00001ab0| 20 64 65 76 65 6c 6f 70 | 69 6e 67 20 61 6e 20 61 | develop|ing an a| |00001ac0| 70 70 6c 69 63 61 74 69 | 6f 6e 20 74 68 61 74 20 |pplicati|on that | |00001ad0| 64 6f 65 73 20 6e 6f 74 | 20 6e 65 65 64 20 74 6f |does not| need to| |00001ae0| 20 63 68 6f 6f 73 65 20 | 76 6f 69 63 65 73 2c 20 | choose |voices, | |00001af0| 75 73 65 20 6d 6f 72 65 | 20 74 68 61 6e 20 6f 6e |use more| than on| |00001b00| 65 20 63 68 61 6e 6e 65 | 6c 20 6f 66 20 73 70 65 |e channe|l of spe| |00001b10| 65 63 68 2c 20 6f 72 20 | 65 78 65 72 63 69 73 65 |ech, or |exercise| |00001b20| 20 72 65 61 6c 2d 74 69 | 6d 65 20 63 6f 6e 74 72 | real-ti|me contr| |00001b30| 6f 6c 20 6f 76 65 72 20 | 74 68 65 20 73 79 6e 74 |ol over |the synt| |00001b40| 68 65 73 69 7a 65 64 20 | 73 70 65 65 63 68 2c 20 |hesized |speech, | |00001b50| 74 68 65 73 65 20 6d 61 | 79 20 62 65 20 74 68 65 |these ma|y be the| |00001b60| 20 6f 6e 6c 79 20 72 6f | 75 74 69 6e 65 73 20 79 | only ro|utines y| |00001b70| 6f 75 20 6e 65 65 64 2e | 0d 44 65 74 65 72 6d 69 |ou need.|.Determi| |00001b80| 6e 69 6e 67 20 49 66 20 | 74 68 65 20 53 70 65 65 |ning If |the Spee| |00001b90| 63 68 20 4d 61 6e 61 67 | 65 72 20 49 73 20 41 76 |ch Manag|er Is Av| |00001ba0| 61 69 6c 61 62 6c 65 0d | 0d 59 6f 75 20 63 61 6e |ailable.|.You can| |00001bb0| 20 66 69 6e 64 20 6f 75 | 74 20 69 66 20 74 68 65 | find ou|t if the| |00001bc0| 20 53 70 65 65 63 68 20 | 4d 61 6e 61 67 65 72 20 | Speech |Manager | |00001bd0| 69 73 20 61 76 61 69 6c | 61 62 6c 65 20 77 69 74 |is avail|able wit| |00001be0| 68 20 61 20 73 69 6e 67 | 6c 65 20 63 61 6c 6c 20 |h a sing|le call | |00001bf0| 74 6f 20 74 68 65 20 47 | 65 73 74 61 6c 74 20 4d |to the G|estalt M| |00001c00| 61 6e 61 67 65 72 2e 20 | 0d 55 73 65 20 74 68 65 |anager. |.Use the| |00001c10| 20 47 65 73 74 61 6c 74 | 20 74 6f 6f 6c 62 6f 78 | Gestalt| toolbox| |00001c20| 20 72 6f 75 74 69 6e 65 | 20 61 6e 64 20 74 68 65 | routine| and the| |00001c30| 20 73 65 6c 65 63 74 6f | 72 20 67 65 73 74 61 6c | selecto|r gestal| |00001c40| 74 53 70 65 65 63 68 41 | 74 74 72 20 74 6f 20 64 |tSpeechA|ttr to d| |00001c50| 65 74 65 72 6d 69 6e 65 | 20 77 68 65 74 68 65 72 |etermine| whether| |00001c60| 20 6f 72 20 6e 6f 74 20 | 74 68 65 20 53 70 65 65 | or not |the Spee| |00001c70| 63 68 20 4d 61 6e 61 67 | 65 72 20 69 73 20 61 76 |ch Manag|er is av| |00001c80| 61 69 6c 61 62 6c 65 2c | 20 61 73 20 73 68 6f 77 |ailable,| as show| |00001c90| 6e 20 69 6e 20 4c 69 73 | 74 69 6e 67 20 31 2d 31 |n in Lis|ting 1-1| |00001ca0| 2e 20 49 66 20 47 65 73 | 74 61 6c 74 20 72 65 74 |. If Ges|talt ret| |00001cb0| 75 72 6e 73 20 6e 6f 45 | 72 72 2c 20 74 68 65 6e |urns noE|rr, then| |00001cc0| 20 74 68 65 20 70 61 72 | 61 6d 65 74 65 72 20 61 | the par|ameter a| |00001cd0| 72 67 75 6d 65 6e 74 20 | 77 69 6c 6c 20 63 6f 6e |rgument |will con| |00001ce0| 74 61 69 6e 20 61 20 33 | 32 2d 62 69 74 20 76 61 |tain a 3|2-bit va| |00001cf0| 6c 75 65 20 69 6e 64 69 | 63 61 74 69 6e 67 20 6f |lue indi|cating o| |00001d00| 6e 65 20 6f 72 20 6d 6f | 72 65 20 61 74 74 72 69 |ne or mo|re attri| |00001d10| 62 75 74 65 73 20 6f 66 | 20 74 68 65 20 69 6e 73 |butes of| the ins| |00001d20| 74 61 6c 6c 65 64 20 53 | 70 65 65 63 68 20 4d 61 |talled S|peech Ma| |00001d30| 6e 61 67 65 72 2e 20 49 | 66 20 74 68 65 20 53 70 |nager. I|f the Sp| |00001d40| 65 65 63 68 20 4d 61 6e | 61 67 65 72 20 65 78 69 |eech Man|ager exi| |00001d50| 73 74 73 2c 20 74 68 65 | 20 62 69 74 20 73 70 65 |sts, the| bit spe| |00001d60| 63 69 66 69 65 64 20 62 | 79 20 67 65 73 74 61 6c |cified b|y gestal| |00001d70| 74 53 70 65 65 63 68 4d | 67 72 50 72 65 73 65 6e |tSpeechM|grPresen| |00001d80| 74 20 69 73 20 73 65 74 | 2e 0d 4c 69 73 74 69 6e |t is set|..Listin| |00001d90| 67 20 31 2d 31 09 44 65 | 74 65 72 6d 69 6e 69 6e |g 1-1.De|terminin| |00001da0| 67 20 69 66 20 74 68 65 | 20 53 70 65 65 63 68 20 |g if the| Speech | |00001db0| 4d 61 6e 61 67 65 72 20 | 69 73 20 61 76 61 69 6c |Manager |is avail| |00001dc0| 61 62 6c 65 0d 0d 42 6f | 6f 6c 65 61 6e 20 53 70 |able..Bo|olean Sp| |00001dd0| 65 65 63 68 41 76 61 69 | 6c 61 62 6c 65 20 28 76 |eechAvai|lable (v| |00001de0| 6f 69 64 29 20 7b 0d 09 | 4f 53 45 72 72 09 09 09 |oid) {..|OSErr...| |00001df0| 65 72 72 3b 0d 09 6c 6f | 6e 67 09 09 09 72 65 73 |err;..lo|ng...res| |00001e00| 75 6c 74 3b 0d 09 65 72 | 72 20 3d 20 47 65 73 74 |ult;..er|r = Gest| |00001e10| 61 6c 74 28 67 65 73 74 | 61 6c 74 53 70 65 65 63 |alt(gest|altSpeec| |00001e20| 68 41 74 74 72 2c 20 26 | 72 65 73 75 6c 74 29 3b |hAttr, &|result);| |00001e30| 0d 09 69 66 20 28 28 65 | 72 72 20 21 3d 20 6e 6f |..if ((e|rr != no| |00001e40| 45 72 72 29 20 7c 7c 20 | 21 28 72 65 73 75 6c 74 |Err) || |!(result| |00001e50| 20 26 20 0d 09 09 09 28 | 31 20 3c 3c 20 67 65 73 | & ....(|1 << ges| |00001e60| 74 61 6c 74 53 70 65 65 | 63 68 4d 67 72 50 72 65 |taltSpee|chMgrPre| |00001e70| 73 65 6e 74 29 29 29 0d | 09 09 72 65 74 75 72 6e |sent))).|..return| |00001e80| 20 46 41 4c 53 45 3b 0d | 09 65 6c 73 65 0d 09 09 | FALSE;.|.else...| |00001e90| 72 65 74 75 72 6e 20 54 | 52 55 45 3b 0d 7d 0d 57 |return T|RUE;.}.W| |00001ea0| 68 69 63 68 20 56 65 72 | 73 69 6f 6e 20 6f 66 20 |hich Ver|sion of | |00001eb0| 74 68 65 20 53 70 65 65 | 63 68 20 4d 61 6e 61 67 |the Spee|ch Manag| |00001ec0| 65 72 20 49 73 20 52 75 | 6e 6e 69 6e 67 3f 0d 0d |er Is Ru|nning?..| |00001ed0| 4f 6e 63 65 20 79 6f 75 | 20 68 61 76 65 20 64 65 |Once you| have de| |00001ee0| 74 65 72 6d 69 6e 65 64 | 20 74 68 61 74 20 74 68 |termined| that th| |00001ef0| 65 20 53 70 65 65 63 68 | 20 4d 61 6e 61 67 65 72 |e Speech| Manager| |00001f00| 20 69 73 20 69 6e 73 74 | 61 6c 6c 65 64 2c 20 79 | is inst|alled, y| |00001f10| 6f 75 20 63 61 6e 20 73 | 65 65 20 77 68 69 63 68 |ou can s|ee which| |00001f20| 20 76 65 72 73 69 6f 6e | 20 6f 66 20 74 68 65 20 | version| of the | |00001f30| 53 70 65 65 63 68 20 4d | 61 6e 61 67 65 72 20 69 |Speech M|anager i| |00001f40| 73 20 72 75 6e 6e 69 6e | 67 20 62 79 20 63 61 6c |s runnin|g by cal| |00001f50| 6c 69 6e 67 20 53 70 65 | 65 63 68 4d 61 6e 61 67 |ling Spe|echManag| |00001f60| 65 72 56 65 72 73 69 6f | 6e 2e 0d 53 70 65 65 63 |erVersio|n..Speec| |00001f70| 68 4d 61 6e 61 67 65 72 | 56 65 72 73 69 6f 6e 0d |hManager|Version.| |00001f80| 0d 52 65 74 75 72 6e 73 | 20 74 68 65 20 76 65 72 |.Returns| the ver| |00001f90| 73 69 6f 6e 20 6f 66 20 | 74 68 65 20 53 70 65 65 |sion of |the Spee| |00001fa0| 63 68 20 4d 61 6e 61 67 | 65 72 20 69 6e 73 74 61 |ch Manag|er insta| |00001fb0| 6c 6c 65 64 20 69 6e 20 | 74 68 65 20 73 79 73 74 |lled in |the syst| |00001fc0| 65 6d 2e 0d 70 61 73 63 | 61 6c 20 4e 75 6d 56 65 |em..pasc|al NumVe| |00001fd0| 72 73 69 6f 6e 20 53 70 | 65 65 63 68 4d 61 6e 61 |rsion Sp|eechMana| |00001fe0| 67 65 72 56 65 72 73 69 | 6f 6e 20 28 76 6f 69 64 |gerVersi|on (void| |00001ff0| 29 3b 0d 44 45 53 43 52 | 49 50 54 49 4f 4e 0d 53 |);.DESCR|IPTION.S| |00002000| 70 65 65 63 68 4d 61 6e | 61 67 65 72 56 65 72 73 |peechMan|agerVers| |00002010| 69 6f 6e 20 72 65 74 75 | 72 6e 73 20 74 68 65 20 |ion retu|rns the | |00002020| 76 65 72 73 69 6f 6e 20 | 6f 66 20 74 68 65 20 53 |version |of the S| |00002030| 70 65 65 63 68 20 4d 61 | 6e 61 67 65 72 20 69 6e |peech Ma|nager in| |00002040| 73 74 61 6c 6c 65 64 20 | 69 6e 20 74 68 65 20 73 |stalled |in the s| |00002050| 79 73 74 65 6d 2e 20 54 | 68 69 73 20 63 61 6c 6c |ystem. T|his call| |00002060| 20 73 68 6f 75 6c 64 20 | 62 65 20 75 73 65 64 20 | should |be used | |00002070| 74 6f 20 64 65 74 65 72 | 6d 69 6e 65 20 74 68 65 |to deter|mine the| |00002080| 20 63 6f 6d 70 61 74 69 | 62 69 6c 69 74 79 20 6f | compati|bility o| |00002090| 66 20 79 6f 75 72 20 70 | 72 6f 67 72 61 6d 20 77 |f your p|rogram w| |000020a0| 69 74 68 20 74 68 65 20 | 63 75 72 72 65 6e 74 6c |ith the |currentl| |000020b0| 79 20 69 6e 73 74 61 6c | 6c 65 64 20 53 70 65 65 |y instal|led Spee| |000020c0| 63 68 20 4d 61 6e 61 67 | 65 72 2e 0d 52 45 53 55 |ch Manag|er..RESU| |000020d0| 4c 54 20 43 4f 44 45 53 | 0d 4e 6f 6e 65 0d 4d 61 |LT CODES|.None.Ma| |000020e0| 6b 69 6e 67 20 53 6f 6d | 65 20 4e 6f 69 73 65 0d |king Som|e Noise.| |000020f0| 0d 54 68 65 20 6d 6f 73 | 74 20 62 61 73 69 63 20 |.The mos|t basic | |00002100| 6f 70 65 72 61 74 69 6f | 6e 20 6f 66 20 74 68 65 |operatio|n of the| |00002110| 20 53 70 65 65 63 68 20 | 4d 61 6e 61 67 65 72 20 | Speech |Manager | |00002120| 69 73 20 61 63 63 6f 6d | 70 6c 69 73 68 65 64 20 |is accom|plished | |00002130| 62 79 20 75 73 69 6e 67 | 20 74 68 65 20 53 70 65 |by using| the Spe| |00002140| 61 6b 53 74 72 69 6e 67 | 20 63 61 6c 6c 2e 20 54 |akString| call. T| |00002150| 68 69 73 20 63 61 6c 6c | 20 70 61 73 73 65 73 20 |his call| passes | |00002160| 61 20 73 70 65 63 69 66 | 69 63 20 74 65 78 74 20 |a specif|ic text | |00002170| 73 74 72 69 6e 67 20 74 | 6f 20 62 65 20 73 70 6f |string t|o be spo| |00002180| 6b 65 6e 20 74 6f 20 74 | 68 65 20 53 70 65 65 63 |ken to t|he Speec| |00002190| 68 20 4d 61 6e 61 67 65 | 72 2e 0d 53 70 65 61 6b |h Manage|r..Speak| |000021a0| 53 74 72 69 6e 67 0d 0d | 54 68 65 20 53 70 65 61 |String..|The Spea| |000021b0| 6b 53 74 72 69 6e 67 20 | 66 75 6e 63 74 69 6f 6e |kString |function| |000021c0| 20 70 61 73 73 65 73 20 | 61 20 73 70 65 63 69 66 | passes |a specif| |000021d0| 69 63 20 74 65 78 74 20 | 73 74 72 69 6e 67 20 74 |ic text |string t| |000021e0| 6f 20 62 65 20 73 70 6f | 6b 65 6e 20 74 6f 20 74 |o be spo|ken to t| |000021f0| 68 65 20 53 70 65 65 63 | 68 20 4d 61 6e 61 67 65 |he Speec|h Manage| |00002200| 72 2e 0d 70 61 73 63 61 | 6c 20 4f 53 45 72 72 20 |r..pasca|l OSErr | |00002210| 53 70 65 61 6b 53 74 72 | 69 6e 67 20 28 53 74 72 |SpeakStr|ing (Str| |00002220| 69 6e 67 50 74 72 20 6d | 79 53 74 72 69 6e 67 29 |ingPtr m|yString)| |00002230| 3b 0d 46 69 65 6c 64 20 | 64 65 73 63 72 69 70 74 |;.Field |descript| |00002240| 69 6f 6e 73 0d 6d 79 53 | 74 72 69 6e 67 09 54 65 |ions.myS|tring.Te| |00002250| 78 74 20 73 74 72 69 6e | 67 20 74 6f 20 62 65 20 |xt strin|g to be | |00002260| 73 70 6f 6b 65 6e 0d 44 | 45 53 43 52 49 50 54 49 |spoken.D|ESCRIPTI| |00002270| 4f 4e 0d 53 70 65 61 6b | 53 74 72 69 6e 67 20 61 |ON.Speak|String a| |00002280| 74 74 65 6d 70 74 73 20 | 74 6f 20 73 70 65 61 6b |ttempts |to speak| |00002290| 20 74 68 65 20 50 61 73 | 63 61 6c 2d 73 74 79 6c | the Pas|cal-styl| |000022a0| 65 20 74 65 78 74 20 73 | 74 72 69 6e 67 20 63 6f |e text s|tring co| |000022b0| 6e 74 61 69 6e 65 64 20 | 69 6e 20 6d 79 53 74 72 |ntained |in myStr| |000022c0| 69 6e 67 2e 20 53 70 65 | 65 63 68 20 69 73 20 70 |ing. Spe|ech is p| |000022d0| 72 6f 64 75 63 65 64 20 | 61 73 79 6e 63 68 72 6f |roduced |asynchro| |000022e0| 6e 6f 75 73 6c 79 20 75 | 73 69 6e 67 20 74 68 65 |nously u|sing the| |000022f0| 20 64 65 66 61 75 6c 74 | 20 73 79 73 74 65 6d 20 | default| system | |00002300| 76 6f 69 63 65 2e 20 57 | 68 65 6e 20 61 6e 20 61 |voice. W|hen an a| |00002310| 70 70 6c 69 63 61 74 69 | 6f 6e 20 63 61 6c 6c 73 |pplicati|on calls| |00002320| 20 74 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 2c 20 | this fu|nction, | |00002330| 74 68 65 20 53 70 65 65 | 63 68 20 4d 61 6e 61 67 |the Spee|ch Manag| |00002340| 65 72 20 6d 61 6b 65 73 | 20 61 20 63 6f 70 79 20 |er makes| a copy | |00002350| 6f 66 20 74 68 65 20 70 | 61 73 73 65 64 20 73 74 |of the p|assed st| |00002360| 72 69 6e 67 20 61 6e 64 | 20 63 72 65 61 74 65 73 |ring and| creates| |00002370| 20 61 6e 79 20 73 74 72 | 75 63 74 75 72 65 73 20 | any str|uctures | |00002380| 72 65 71 75 69 72 65 64 | 20 74 6f 20 73 70 65 61 |required| to spea| |00002390| 6b 20 69 74 2e 20 41 73 | 20 73 6f 6f 6e 20 61 73 |k it. As| soon as| |000023a0| 20 73 70 65 61 6b 69 6e | 67 20 68 61 73 20 62 65 | speakin|g has be| |000023b0| 67 75 6e 2c 20 63 6f 6e | 74 72 6f 6c 20 69 73 20 |gun, con|trol is | |000023c0| 72 65 74 75 72 6e 65 64 | 20 74 6f 20 74 68 65 20 |returned| to the | |000023d0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 2e 20 54 68 65 |applicat|ion. The| |000023e0| 20 73 79 6e 74 68 65 73 | 69 7a 65 64 20 73 70 65 | synthes|ized spe| |000023f0| 65 63 68 20 69 73 20 67 | 65 6e 65 72 61 74 65 64 |ech is g|enerated| |00002400| 20 74 72 61 6e 73 70 61 | 72 65 6e 74 6c 79 20 74 | transpa|rently t| |00002410| 6f 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |o the ap|plicatio| |00002420| 6e 20 73 6f 20 74 68 61 | 74 20 6e 6f 72 6d 61 6c |n so tha|t normal| |00002430| 20 70 72 6f 63 65 73 73 | 69 6e 67 20 63 61 6e 20 | process|ing can | |00002440| 63 6f 6e 74 69 6e 75 65 | 20 77 68 69 6c 65 20 74 |continue| while t| |00002450| 68 65 20 74 65 78 74 20 | 69 73 20 62 65 69 6e 67 |he text |is being| |00002460| 20 73 70 6f 6b 65 6e 2e | 20 4e 6f 20 66 75 72 74 | spoken.| No furt| |00002470| 68 65 72 20 69 6e 74 65 | 72 61 63 74 69 6f 6e 20 |her inte|raction | |00002480| 77 69 74 68 20 74 68 65 | 20 53 70 65 65 63 68 20 |with the| Speech | |00002490| 4d 61 6e 61 67 65 72 20 | 69 73 20 72 65 71 75 69 |Manager |is requi| |000024a0| 72 65 64 20 61 74 20 74 | 68 69 73 20 70 6f 69 6e |red at t|his poin| |000024b0| 74 2c 20 61 6e 64 20 74 | 68 65 20 61 70 70 6c 69 |t, and t|he appli| |000024c0| 63 61 74 69 6f 6e 20 69 | 73 20 66 72 65 65 20 74 |cation i|s free t| |000024d0| 6f 20 72 65 6c 65 61 73 | 65 20 6f 72 20 70 75 72 |o releas|e or pur| |000024e0| 67 65 20 6f 72 20 74 72 | 61 73 68 20 74 68 65 20 |ge or tr|ash the | |000024f0| 6f 72 69 67 69 6e 61 6c | 20 73 74 72 69 6e 67 2e |original| string.| |00002500| 0d 49 66 20 53 70 65 61 | 6b 53 74 72 69 6e 67 20 |.If Spea|kString | |00002510| 69 73 20 63 61 6c 6c 65 | 64 20 77 68 69 6c 65 20 |is calle|d while | |00002520| 61 20 70 72 69 6f 72 20 | 73 74 72 69 6e 67 20 69 |a prior |string i| |00002530| 73 20 73 74 69 6c 6c 20 | 62 65 69 6e 67 20 73 70 |s still |being sp| |00002540| 6f 6b 65 6e 2c 20 74 68 | 65 20 61 75 64 69 6f 20 |oken, th|e audio | |00002550| 63 75 72 72 65 6e 74 6c | 79 20 62 65 69 6e 67 20 |currentl|y being | |00002560| 73 79 6e 74 68 65 73 69 | 7a 65 64 20 69 73 20 69 |synthesi|zed is i| |00002570| 6e 74 65 72 72 75 70 74 | 65 64 20 69 6d 6d 65 64 |nterrupt|ed immed| |00002580| 69 61 74 65 6c 79 2e 20 | 43 6f 6e 76 65 72 73 69 |iately. |Conversi| |00002590| 6f 6e 20 6f 66 20 74 68 | 65 20 6e 65 77 20 74 65 |on of th|e new te| |000025a0| 78 74 20 69 6e 74 6f 20 | 73 70 65 65 63 68 20 69 |xt into |speech i| |000025b0| 73 20 74 68 65 6e 20 69 | 6e 69 74 69 61 74 65 64 |s then i|nitiated| |000025c0| 2e 20 49 66 20 61 6e 20 | 65 6d 70 74 79 20 28 7a |. If an |empty (z| |000025d0| 65 72 6f 20 6c 65 6e 67 | 74 68 29 20 73 74 72 69 |ero leng|th) stri| |000025e0| 6e 67 20 6f 72 20 61 20 | 6e 75 6c 6c 20 73 74 72 |ng or a |null str| |000025f0| 69 6e 67 20 70 6f 69 6e | 74 65 72 20 69 73 20 70 |ing poin|ter is p| |00002600| 61 73 73 65 64 20 74 6f | 20 53 70 65 61 6b 53 74 |assed to| SpeakSt| |00002610| 72 69 6e 67 2c 20 69 74 | 20 73 74 6f 70 73 20 74 |ring, it| stops t| |00002620| 68 65 20 73 79 6e 74 68 | 65 73 69 73 20 6f 66 20 |he synth|esis of | |00002630| 61 6e 79 20 70 72 69 6f | 72 20 73 74 72 69 6e 67 |any prio|r string| |00002640| 20 62 75 74 20 64 6f 65 | 73 20 6e 6f 74 20 67 65 | but doe|s not ge| |00002650| 6e 65 72 61 74 65 20 61 | 6e 79 20 61 64 64 69 74 |nerate a|ny addit| |00002660| 69 6f 6e 61 6c 20 73 70 | 65 65 63 68 2e 0d 41 73 |ional sp|eech..As| |00002670| 20 77 69 74 68 20 61 6c | 6c 20 53 70 65 65 63 68 | with al|l Speech| |00002680| 20 4d 61 6e 61 67 65 72 | 20 72 6f 75 74 69 6e 65 | Manager| routine| |00002690| 73 20 74 68 61 74 20 65 | 78 70 65 63 74 20 74 65 |s that e|xpect te| |000026a0| 78 74 20 61 72 67 75 6d | 65 6e 74 73 2c 20 74 68 |xt argum|ents, th| |000026b0| 65 20 74 65 78 74 20 6d | 61 79 20 63 6f 6e 74 61 |e text m|ay conta| |000026c0| 69 6e 20 65 6d 62 65 64 | 64 65 64 20 73 70 65 65 |in embed|ded spee| |000026d0| 63 68 20 63 6f 6e 74 72 | 6f 6c 20 63 6f 6d 6d 61 |ch contr|ol comma| |000026e0| 6e 64 73 2e 20 0d 52 65 | 73 75 6c 74 20 43 6f 64 |nds. .Re|sult Cod| |000026f0| 65 73 6e 6f 45 72 72 09 | 30 09 4e 6f 20 65 72 72 |esnoErr.|0.No err| |00002700| 6f 72 09 0d 6d 65 6d 46 | 75 6c 6c 45 72 72 09 d0 |or..memF|ullErr..| |00002710| 31 30 38 09 4e 6f 74 20 | 65 6e 6f 75 67 68 20 6d |108.Not |enough m| |00002720| 65 6d 6f 72 79 20 74 6f | 20 73 70 65 61 6b 09 0d |emory to| speak..| |00002730| 73 79 6e 74 68 4f 70 65 | 6e 46 61 69 6c 65 64 09 |synthOpe|nFailed.| |00002740| d0 32 34 31 09 43 6f 75 | 6c 64 20 6e 6f 74 20 6f |.241.Cou|ld not o| |00002750| 70 65 6e 20 61 6e 6f 74 | 68 65 72 20 73 70 65 65 |pen anot|her spee| |00002760| 63 68 20 73 79 6e 74 68 | 65 73 69 7a 65 72 20 63 |ch synth|esizer c| |00002770| 68 61 6e 6e 65 6c 09 0d | 0d 44 65 74 65 72 6d 69 |hannel..|.Determi| |00002780| 6e 69 6e 67 20 49 66 20 | 53 70 65 61 6b 69 6e 67 |ning If |Speaking| |00002790| 20 49 73 20 43 6f 6d 70 | 6c 65 74 65 0d 0d 4f 6e | Is Comp|lete..On| |000027a0| 63 65 20 61 6e 20 61 70 | 70 6c 69 63 61 74 69 6f |ce an ap|plicatio| |000027b0| 6e 20 73 74 61 72 74 73 | 20 61 20 73 70 65 65 63 |n starts| a speec| |000027c0| 68 20 70 72 6f 63 65 73 | 73 20 77 69 74 68 20 53 |h proces|s with S| |000027d0| 70 65 61 6b 53 74 72 69 | 6e 67 2c 20 74 68 65 20 |peakStri|ng, the | |000027e0| 6e 65 78 74 20 74 68 69 | 6e 67 20 69 74 20 77 69 |next thi|ng it wi| |000027f0| 6c 6c 20 70 72 6f 62 61 | 62 6c 79 20 6e 65 65 64 |ll proba|bly need| |00002800| 20 74 6f 20 6b 6e 6f 77 | 20 69 73 20 77 68 65 74 | to know| is whet| |00002810| 68 65 72 20 74 68 65 20 | 73 74 72 69 6e 67 20 68 |her the |string h| |00002820| 61 73 20 62 65 65 6e 20 | 63 6f 6d 70 6c 65 74 65 |as been |complete| |00002830| 6c 79 20 73 70 6f 6b 65 | 6e 2e 20 49 74 20 63 61 |ly spoke|n. It ca| |00002840| 6e 20 75 73 65 20 53 70 | 65 65 63 68 42 75 73 79 |n use Sp|eechBusy| |00002850| 20 74 6f 20 64 65 74 65 | 72 6d 69 6e 65 20 77 68 | to dete|rmine wh| |00002860| 65 74 68 65 72 20 6f 72 | 20 6e 6f 74 20 74 68 65 |ether or| not the| |00002870| 20 73 79 73 74 65 6d 20 | 69 73 20 73 74 69 6c 6c | system |is still| |00002880| 20 73 70 65 61 6b 69 6e | 67 2e 0d 53 70 65 65 63 | speakin|g..Speec| |00002890| 68 42 75 73 79 0d 0d 54 | 68 65 20 53 70 65 65 63 |hBusy..T|he Speec| |000028a0| 68 42 75 73 79 20 72 6f | 75 74 69 6e 65 20 69 73 |hBusy ro|utine is| |000028b0| 20 75 73 65 66 75 6c 20 | 77 68 65 6e 20 79 6f 75 | useful |when you| |000028c0| 20 77 61 6e 74 20 74 6f | 20 65 6e 73 75 72 65 20 | want to| ensure | |000028d0| 74 68 61 74 20 61 6e 20 | 65 61 72 6c 69 65 72 20 |that an |earlier | |000028e0| 73 70 65 65 63 68 20 72 | 65 71 75 65 73 74 20 68 |speech r|equest h| |000028f0| 61 73 20 62 65 65 6e 20 | 63 6f 6d 70 6c 65 74 65 |as been |complete| |00002900| 64 20 62 65 66 6f 72 65 | 20 68 61 76 69 6e 67 20 |d before| having | |00002910| 74 68 65 20 73 79 73 74 | 65 6d 20 73 70 65 61 6b |the syst|em speak| |00002920| 20 61 67 61 69 6e 2e 0d | 70 61 73 63 61 6c 20 73 | again..|pascal s| |00002930| 68 6f 72 74 20 53 70 65 | 65 63 68 42 75 73 79 20 |hort Spe|echBusy | |00002940| 28 76 6f 69 64 29 3b 0d | 44 45 53 43 52 49 50 54 |(void);.|DESCRIPT| |00002950| 49 4f 4e 0d 53 70 65 65 | 63 68 42 75 73 79 20 72 |ION.Spee|chBusy r| |00002960| 65 74 75 72 6e 73 20 74 | 68 65 20 6e 75 6d 62 65 |eturns t|he numbe| |00002970| 72 20 6f 66 20 63 68 61 | 6e 6e 65 6c 73 20 6f 66 |r of cha|nnels of| |00002980| 20 73 70 65 65 63 68 20 | 74 68 61 74 20 61 72 65 | speech |that are| |00002990| 20 63 75 72 72 65 6e 74 | 6c 79 20 73 79 6e 74 68 | current|ly synth| |000029a0| 65 73 69 7a 69 6e 67 20 | 73 70 65 65 63 68 20 69 |esizing |speech i| |000029b0| 6e 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |n the ap|plicatio| |000029c0| 6e 2e 20 49 66 20 79 6f | 75 20 75 73 65 20 6a 75 |n. If yo|u use ju| |000029d0| 73 74 20 53 70 65 61 6b | 53 74 72 69 6e 67 20 74 |st Speak|String t| |000029e0| 6f 20 69 6e 69 74 69 61 | 74 65 20 73 70 65 65 63 |o initia|te speec| |000029f0| 68 2c 20 53 70 65 65 63 | 68 42 75 73 79 20 77 69 |h, Speec|hBusy wi| |00002a00| 6c 6c 20 61 6c 77 61 79 | 73 20 72 65 74 75 72 6e |ll alway|s return| |00002a10| 20 31 20 61 73 20 6c 6f | 6e 67 20 61 73 20 73 70 | 1 as lo|ng as sp| |00002a20| 65 65 63 68 20 69 73 20 | 62 65 69 6e 67 20 70 72 |eech is |being pr| |00002a30| 6f 64 75 63 65 64 2e 20 | 57 68 65 6e 20 53 70 65 |oduced. |When Spe| |00002a40| 65 63 68 42 75 73 79 20 | 72 65 74 75 72 6e 73 20 |echBusy |returns | |00002a50| 30 2c 20 61 6c 6c 20 69 | 6e 69 74 69 61 74 65 64 |0, all i|nitiated| |00002a60| 20 73 70 65 65 63 68 20 | 68 61 73 20 66 69 6e 69 | speech |has fini| |00002a70| 73 68 65 64 2e 20 0d 52 | 45 53 55 4c 54 20 43 4f |shed. .R|ESULT CO| |00002a80| 44 45 53 0d 4e 6f 6e 65 | 0d 41 20 53 69 6d 70 6c |DES.None|.A Simpl| |00002a90| 65 20 45 78 61 6d 70 6c | 65 0d 0d 54 68 65 20 65 |e Exampl|e..The e| |00002aa0| 78 61 6d 70 6c 65 20 73 | 68 6f 77 6e 20 69 6e 20 |xample s|hown in | |00002ab0| 4c 69 73 74 69 6e 67 20 | 31 2d 32 20 64 65 6d 6f |Listing |1-2 demo| |00002ac0| 6e 73 74 72 61 74 65 73 | 20 68 6f 77 20 74 6f 20 |nstrates| how to | |00002ad0| 75 73 65 20 74 68 65 20 | 72 6f 75 74 69 6e 65 73 |use the |routines| |00002ae0| 20 69 6e 74 72 6f 64 75 | 63 65 64 20 69 6e 20 74 | introdu|ced in t| |00002af0| 68 69 73 20 73 65 63 74 | 69 6f 6e 2e 20 49 74 20 |his sect|ion. It | |00002b00| 66 69 72 73 74 20 6d 61 | 6b 65 73 20 73 75 72 65 |first ma|kes sure| |00002b10| 20 74 68 65 20 53 70 65 | 65 63 68 20 4d 61 6e 61 | the Spe|ech Mana| |00002b20| 67 65 72 20 69 73 20 61 | 76 61 69 6c 61 62 6c 65 |ger is a|vailable| |00002b30| 2e 20 54 68 65 6e 20 69 | 74 20 73 74 61 72 74 73 |. Then i|t starts| |00002b40| 20 73 70 65 61 6b 69 6e | 67 20 61 20 73 74 72 69 | speakin|g a stri| |00002b50| 6e 67 20 28 68 61 72 64 | 2d 63 6f 64 65 64 20 69 |ng (hard|-coded i| |00002b60| 6e 20 74 68 69 73 20 65 | 78 61 6d 70 6c 65 2c 20 |n this e|xample, | |00002b70| 62 75 74 20 6d 6f 72 65 | 20 63 6f 6d 6d 6f 6e 6c |but more| commonl| |00002b80| 79 20 6c 6f 61 64 65 64 | 20 66 72 6f 6d 20 61 20 |y loaded| from a | |00002b90| 72 65 73 6f 75 72 63 65 | 29 20 61 6e 64 20 6c 6f |resource|) and lo| |00002ba0| 6f 70 73 2c 20 64 6f 69 | 6e 67 20 73 6f 6d 65 20 |ops, doi|ng some | |00002bb0| 73 63 72 65 65 6e 20 64 | 72 61 77 69 6e 67 2c 20 |screen d|rawing, | |00002bc0| 75 6e 74 69 6c 20 74 68 | 65 20 73 74 72 69 6e 67 |until th|e string| |00002bd0| 20 69 73 20 63 6f 6d 70 | 6c 65 74 65 6c 79 20 73 | is comp|letely s| |00002be0| 70 6f 6b 65 6e 2e 20 54 | 68 69 73 20 65 78 61 6d |poken. T|his exam| |00002bf0| 70 6c 65 20 75 73 65 73 | 20 74 68 65 20 53 70 65 |ple uses| the Spe| |00002c00| 65 63 68 41 76 61 69 6c | 61 62 6c 65 20 72 6f 75 |echAvail|able rou| |00002c10| 74 69 6e 65 20 73 68 6f | 77 6e 20 69 6e 20 4c 69 |tine sho|wn in Li| |00002c20| 73 74 69 6e 67 20 31 2d | 31 2e 0d 4c 69 73 74 69 |sting 1-|1..Listi| |00002c30| 6e 67 20 31 2d 32 09 45 | 6c 65 6d 65 6e 74 61 72 |ng 1-2.E|lementar| |00002c40| 79 20 53 70 65 65 63 68 | 20 4d 61 6e 61 67 65 72 |y Speech| Manager| |00002c50| 20 63 61 6c 6c 73 0d 0d | 4f 53 45 72 72 20 65 72 | calls..|OSErr er| |00002c60| 72 3b 0d 69 66 20 28 53 | 70 65 65 63 68 41 76 61 |r;.if (S|peechAva| |00002c70| 69 6c 61 62 6c 65 28 29 | 29 20 7b 0d 09 65 72 72 |ilable()|) {..err| |00002c80| 20 3d 20 53 70 65 61 6b | 53 74 72 69 6e 67 28 22 | = Speak|String("| |00002c90| 5c 70 54 68 65 20 63 61 | 74 20 73 61 74 20 6f 6e |\pThe ca|t sat on| |00002ca0| 20 74 68 65 20 6d 61 74 | 2e 22 29 3b 0d 09 69 66 | the mat|.");..if| |00002cb0| 20 28 65 72 72 20 3d 3d | 20 6e 6f 45 72 72 29 0d | (err ==| noErr).| |00002cc0| 09 09 77 68 69 6c 65 20 | 28 53 70 65 65 63 68 42 |..while |(SpeechB| |00002cd0| 75 73 79 28 29 20 3e 20 | 30 29 0d 09 09 09 43 6f |usy() > |0)....Co| |00002ce0| 6f 6c 41 6e 69 6d 61 74 | 69 6f 6e 52 6f 75 74 69 |olAnimat|ionRouti| |00002cf0| 6e 65 28 29 3b 0d 09 65 | 6c 73 65 0d 09 09 4e 6f |ne();..e|lse...No| |00002d00| 74 53 6f 43 6f 6f 6c 41 | 6c 65 72 74 52 6f 75 74 |tSoCoolA|lertRout| |00002d10| 69 6e 65 28 65 72 72 29 | 3b 0d 7d 0d 45 73 73 65 |ine(err)|;.}.Esse| |00002d20| 6e 74 69 61 6c 20 43 61 | 6c 6c 73 d1 53 69 6d 70 |ntial Ca|lls.Simp| |00002d30| 6c 65 20 61 6e 64 20 55 | 73 65 66 75 6c 0d 0d 57 |le and U|seful..W| |00002d40| 68 69 6c 65 20 74 68 65 | 20 72 6f 75 74 69 6e 65 |hile the| routine| |00002d50| 73 20 70 72 65 73 65 6e | 74 65 64 20 69 6e 20 74 |s presen|ted in t| |00002d60| 68 65 20 6c 61 73 74 20 | 73 65 63 74 69 6f 6e 20 |he last |section | |00002d70| 61 72 65 20 73 69 6d 70 | 6c 65 20 74 6f 20 75 73 |are simp|le to us| |00002d80| 65 2c 20 74 68 65 69 72 | 20 61 70 70 6c 69 63 61 |e, their| applica| |00002d90| 62 69 6c 69 74 79 20 69 | 73 20 6c 69 6d 69 74 65 |bility i|s limite| |00002da0| 64 20 74 6f 20 61 20 66 | 65 77 20 62 61 73 69 63 |d to a f|ew basic| |00002db0| 20 73 70 65 65 63 68 20 | 73 63 65 6e 61 72 69 6f | speech |scenario| |00002dc0| 73 2e 20 54 68 69 73 20 | 73 65 63 74 69 6f 6e 20 |s. This |section | |00002dd0| 64 65 73 63 72 69 62 65 | 73 20 61 64 64 69 74 69 |describe|s additi| |00002de0| 6f 6e 61 6c 20 72 6f 75 | 74 69 6e 65 73 20 74 68 |onal rou|tines th| |00002df0| 61 74 20 6c 65 74 20 79 | 6f 75 20 77 6f 72 6b 20 |at let y|ou work | |00002e00| 77 69 74 68 20 64 69 66 | 66 65 72 65 6e 74 20 76 |with dif|ferent v| |00002e10| 6f 69 63 65 73 20 61 6e | 64 20 61 64 6a 75 73 74 |oices an|d adjust| |00002e20| 20 73 6f 6d 65 20 62 61 | 73 69 63 20 63 68 61 72 | some ba|sic char| |00002e30| 61 63 74 65 72 69 73 74 | 69 63 73 20 6f 66 20 74 |acterist|ics of t| |00002e40| 68 65 20 73 79 6e 74 68 | 65 73 69 7a 65 64 20 73 |he synth|esized s| |00002e50| 70 65 65 63 68 2e 0d 57 | 6f 72 6b 69 6e 67 20 57 |peech..W|orking W| |00002e60| 69 74 68 20 56 6f 69 63 | 65 73 0d 0d 57 68 65 6e |ith Voic|es..When| |00002e70| 20 64 65 73 63 72 69 62 | 69 6e 67 20 61 20 70 65 | describ|ing a pe| |00002e80| 72 73 6f 6e d5 73 20 76 | 6f 69 63 65 2c 20 77 65 |rson.s v|oice, we| |00002e90| 20 74 61 6c 6b 20 61 62 | 6f 75 74 20 74 68 65 20 | talk ab|out the | |00002ea0| 70 61 72 74 69 63 75 6c | 61 72 20 73 65 74 20 6f |particul|ar set o| |00002eb0| 66 20 63 68 61 72 61 63 | 74 65 72 69 73 74 69 63 |f charac|teristic| |00002ec0| 73 20 74 68 61 74 20 68 | 65 6c 70 20 75 73 20 74 |s that h|elp us t| |00002ed0| 6f 20 64 69 73 74 69 6e | 67 75 69 73 68 20 74 68 |o distin|guish th| |00002ee0| 61 74 20 70 65 72 73 6f | 6e d5 73 20 76 6f 69 63 |at perso|n.s voic| |00002ef0| 65 20 66 72 6f 6d 20 61 | 6e 6f 74 68 65 72 2e 20 |e from a|nother. | |00002f00| 46 6f 72 20 65 78 61 6d | 70 6c 65 2c 20 74 68 65 |For exam|ple, the| |00002f10| 20 72 61 74 65 20 61 74 | 20 77 68 69 63 68 20 6f | rate at| which o| |00002f20| 6e 65 20 73 70 65 61 6b | 73 20 28 73 6c 6f 77 20 |ne speak|s (slow | |00002f30| 6f 72 20 66 61 73 74 29 | 20 61 6e 64 20 74 68 65 |or fast)| and the| |00002f40| 20 61 76 65 72 61 67 65 | 20 70 69 74 63 68 20 28 | average| pitch (| |00002f50| 68 69 67 68 20 6f 72 20 | 6c 6f 77 29 20 63 68 61 |high or |low) cha| |00002f60| 72 61 63 74 65 72 69 7a | 65 20 61 20 70 61 72 74 |racteriz|e a part| |00002f70| 69 63 75 6c 61 72 20 73 | 70 65 61 6b 65 72 20 6f |icular s|peaker o| |00002f80| 6e 20 61 20 63 72 75 64 | 65 20 6c 65 76 65 6c 2e |n a crud|e level.| |00002f90| 20 49 6e 20 74 68 65 20 | 63 6f 6e 74 65 78 74 20 | In the |context | |00002fa0| 6f 66 20 74 68 65 20 53 | 70 65 65 63 68 20 4d 61 |of the S|peech Ma| |00002fb0| 6e 61 67 65 72 2c 20 61 | 20 76 6f 69 63 65 20 69 |nager, a| voice i| |00002fc0| 73 20 74 68 65 20 73 65 | 74 20 6f 66 20 70 61 72 |s the se|t of par| |00002fd0| 61 6d 65 74 65 72 73 20 | 74 68 61 74 20 73 70 65 |ameters |that spe| |00002fe0| 63 69 66 79 20 61 20 70 | 61 72 74 69 63 75 6c 61 |cify a p|articula| |00002ff0| 72 20 71 75 61 6c 69 74 | 79 20 6f 66 20 73 79 6e |r qualit|y of syn| |00003000| 74 68 65 73 69 7a 65 64 | 20 73 70 65 65 63 68 2e |thesized| speech.| |00003010| 20 54 68 69 73 20 70 6f | 72 74 69 6f 6e 20 6f 66 | This po|rtion of| |00003020| 20 74 68 65 20 53 70 65 | 65 63 68 20 4d 61 6e 61 | the Spe|ech Mana| |00003030| 67 65 72 20 69 73 20 75 | 73 65 64 20 74 6f 20 64 |ger is u|sed to d| |00003040| 65 74 65 72 6d 69 6e 65 | 20 77 68 69 63 68 20 76 |etermine| which v| |00003050| 6f 69 63 65 73 20 61 72 | 65 20 61 76 61 69 6c 61 |oices ar|e availa| |00003060| 62 6c 65 20 61 6e 64 20 | 74 6f 20 73 65 6c 65 63 |ble and |to selec| |00003070| 74 20 70 61 72 74 69 63 | 75 6c 61 72 20 76 6f 69 |t partic|ular voi| |00003080| 63 65 73 2e 0d 45 76 65 | 72 79 20 73 70 65 63 69 |ces..Eve|ry speci| |00003090| 66 69 63 20 76 6f 69 63 | 65 20 68 61 73 20 61 20 |fic voic|e has a | |000030a0| 75 6e 69 71 75 65 20 49 | 44 20 61 73 73 6f 63 69 |unique I|D associ| |000030b0| 61 74 65 64 20 77 69 74 | 68 20 69 74 2c 20 77 68 |ated wit|h it, wh| |000030c0| 69 63 68 20 69 73 20 74 | 68 65 20 70 72 69 6d 61 |ich is t|he prima| |000030d0| 72 79 20 77 61 79 20 61 | 6e 20 61 70 70 6c 69 63 |ry way a|n applic| |000030e0| 61 74 69 6f 6e 20 72 65 | 66 65 72 73 20 74 6f 20 |ation re|fers to | |000030f0| 69 74 2e 20 57 69 74 68 | 69 6e 20 74 68 65 20 53 |it. With|in the S| |00003100| 70 65 65 63 68 20 4d 61 | 6e 61 67 65 72 20 61 20 |peech Ma|nager a | |00003110| 75 6e 69 71 75 65 20 76 | 6f 69 63 65 20 49 44 20 |unique v|oice ID | |00003120| 69 73 20 63 61 6c 6c 65 | 64 20 61 20 56 6f 69 63 |is calle|d a Voic| |00003130| 65 53 70 65 63 20 73 74 | 72 75 63 74 75 72 65 2e |eSpec st|ructure.| |00003140| 0d 54 68 65 20 53 70 65 | 65 63 68 20 4d 61 6e 61 |.The Spe|ech Mana| |00003150| 67 65 72 20 70 72 6f 76 | 69 64 65 73 20 74 77 6f |ger prov|ides two| |00003160| 20 72 6f 75 74 69 6e 65 | 73 20 74 6f 20 63 6f 75 | routine|s to cou| |00003170| 6e 74 20 61 6e 64 20 73 | 74 65 70 20 74 68 72 6f |nt and s|tep thro| |00003180| 75 67 68 20 74 68 65 20 | 6c 69 73 74 20 6f 66 20 |ugh the |list of | |00003190| 63 75 72 72 65 6e 74 6c | 79 20 61 76 61 69 6c 61 |currentl|y availa| |000031a0| 62 6c 65 20 76 6f 69 63 | 65 73 2e 20 43 6f 75 6e |ble voic|es. Coun| |000031b0| 74 56 6f 69 63 65 73 20 | 69 73 20 75 73 65 64 20 |tVoices |is used | |000031c0| 74 6f 20 63 6f 6d 70 75 | 74 65 20 68 6f 77 20 6d |to compu|te how m| |000031d0| 61 6e 79 20 76 6f 69 63 | 65 73 20 61 72 65 20 61 |any voic|es are a| |000031e0| 76 61 69 6c 61 62 6c 65 | 20 77 69 74 68 20 74 68 |vailable| with th| |000031f0| 65 20 63 75 72 72 65 6e | 74 20 73 79 73 74 65 6d |e curren|t system| |00003200| 2e 20 47 65 74 49 6e 64 | 56 6f 69 63 65 20 75 73 |. GetInd|Voice us| |00003210| 65 73 20 61 6e 20 69 6e | 64 65 78 2c 20 73 74 61 |es an in|dex, sta| |00003220| 72 74 69 6e 67 20 61 74 | 20 31 2c 20 74 6f 20 72 |rting at| 1, to r| |00003230| 65 74 75 72 6e 20 69 6e | 66 6f 72 6d 61 74 69 6f |eturn in|formatio| |00003240| 6e 20 61 62 6f 75 74 20 | 61 6c 6c 20 63 75 72 72 |n about |all curr| |00003250| 65 6e 74 6c 79 20 69 6e | 73 74 61 6c 6c 65 64 20 |ently in|stalled | |00003260| 76 6f 69 63 65 73 2e 0d | 55 73 65 20 74 68 65 20 |voices..|Use the | |00003270| 47 65 74 49 6e 64 56 6f | 69 63 65 20 72 6f 75 74 |GetIndVo|ice rout| |00003280| 69 6e 65 20 74 6f 20 73 | 74 65 70 20 74 68 72 6f |ine to s|tep thro| |00003290| 75 67 68 20 74 68 65 20 | 6c 69 73 74 20 6f 66 20 |ugh the |list of | |000032a0| 61 76 61 69 6c 61 62 6c | 65 20 76 6f 69 63 65 73 |availabl|e voices| |000032b0| 2e 20 49 74 20 77 69 6c | 6c 20 66 69 6c 6c 20 61 |. It wil|l fill a| |000032c0| 20 56 6f 69 63 65 53 70 | 65 63 20 72 65 63 6f 72 | VoiceSp|ec recor| |000032d0| 64 20 74 68 61 74 20 63 | 61 6e 20 62 65 20 75 73 |d that c|an be us| |000032e0| 65 64 20 74 6f 20 6f 62 | 74 61 69 6e 20 64 65 73 |ed to ob|tain des| |000032f0| 63 72 69 70 74 69 76 65 | 20 69 6e 66 6f 72 6d 61 |criptive| informa| |00003300| 74 69 6f 6e 20 61 62 6f | 75 74 20 74 68 65 20 76 |tion abo|ut the v| |00003310| 6f 69 63 65 20 6f 72 20 | 74 6f 20 73 70 65 61 6b |oice or |to speak| |00003320| 20 75 73 69 6e 67 20 74 | 68 61 74 20 76 6f 69 63 | using t|hat voic| |00003330| 65 2e 0d 41 6e 79 20 61 | 70 70 6c 69 63 61 74 69 |e..Any a|pplicati| |00003340| 6f 6e 20 74 68 61 74 20 | 77 69 73 68 65 73 20 74 |on that |wishes t| |00003350| 6f 20 75 73 65 20 6d 75 | 6c 74 69 70 6c 65 20 76 |o use mu|ltiple v| |00003360| 6f 69 63 65 73 20 77 69 | 6c 6c 20 70 72 6f 62 61 |oices wi|ll proba| |00003370| 62 6c 79 20 6e 65 65 64 | 20 61 64 64 69 74 69 6f |bly need| additio| |00003380| 6e 61 6c 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |nal info|rmation | |00003390| 61 62 6f 75 74 20 74 68 | 65 20 61 76 61 69 6c 61 |about th|e availa| |000033a0| 62 6c 65 20 76 6f 69 63 | 65 73 20 62 65 79 6f 6e |ble voic|es beyon| |000033b0| 64 20 74 68 65 20 56 6f | 69 63 65 53 70 65 63 20 |d the Vo|iceSpec | |000033c0| 73 74 72 75 63 74 75 72 | 65 2c 20 73 75 63 68 20 |structur|e, such | |000033d0| 61 73 20 74 68 65 20 6e | 61 6d 65 20 6f 66 20 74 |as the n|ame of t| |000033e0| 68 65 20 76 6f 69 63 65 | 20 61 6e 64 20 70 65 72 |he voice| and per| |000033f0| 68 61 70 73 20 77 68 61 | 74 20 73 63 72 69 70 74 |haps wha|t script| |00003400| 20 61 6e 64 20 6c 61 6e | 67 75 61 67 65 20 65 61 | and lan|guage ea| |00003410| 63 68 20 76 6f 69 63 65 | 20 73 75 70 70 6f 72 74 |ch voice| support| |00003420| 73 2e 20 54 68 69 73 20 | 69 6e 66 6f 72 6d 61 74 |s. This |informat| |00003430| 69 6f 6e 20 6d 69 67 68 | 74 20 62 65 20 70 72 65 |ion migh|t be pre| |00003440| 73 65 6e 74 65 64 20 74 | 6f 20 74 68 65 20 75 73 |sented t|o the us| |00003450| 65 72 20 69 6e 20 61 20 | d2 76 6f 69 63 65 20 70 |er in a |.voice p| |00003460| 69 63 6b 65 72 d3 20 64 | 69 61 6c 6f 67 20 62 6f |icker. d|ialog bo| |00003470| 78 20 6f 72 20 76 6f 69 | 63 65 20 6d 65 6e 75 2c |x or voi|ce menu,| |00003480| 20 6f 72 20 69 74 20 6d | 69 67 68 74 20 62 65 20 | or it m|ight be | |00003490| 75 73 65 64 20 69 6e 74 | 65 72 6e 61 6c 6c 79 20 |used int|ernally | |000034a0| 62 79 20 61 6e 20 61 70 | 70 6c 69 63 61 74 69 6f |by an ap|plicatio| |000034b0| 6e 20 74 72 79 69 6e 67 | 20 74 6f 20 66 69 6e 64 |n trying| to find| |000034c0| 20 61 20 76 6f 69 63 65 | 20 74 68 61 74 20 6d 65 | a voice| that me| |000034d0| 65 74 73 20 63 65 72 74 | 61 69 6e 20 63 72 69 74 |ets cert|ain crit| |000034e0| 65 72 69 61 2e 20 41 70 | 70 6c 69 63 61 74 69 6f |eria. Ap|plicatio| |000034f0| 6e 73 20 63 61 6e 20 75 | 73 65 20 74 68 65 20 47 |ns can u|se the G| |00003500| 65 74 56 6f 69 63 65 44 | 65 73 63 72 69 70 74 69 |etVoiceD|escripti| |00003510| 6f 6e 20 72 6f 75 74 69 | 6e 65 20 66 6f 72 20 74 |on routi|ne for t| |00003520| 68 65 73 65 20 70 75 72 | 70 6f 73 65 73 2e 0d 4d |hese pur|poses..M| |00003530| 61 6b 65 56 6f 69 63 65 | 53 70 65 63 0d 0d 54 6f |akeVoice|Spec..To| |00003540| 20 6d 61 78 69 6d 69 7a | 65 20 63 6f 6d 70 61 74 | maximiz|e compat| |00003550| 69 62 69 6c 69 74 79 20 | 77 69 74 68 20 66 75 74 |ibility |with fut| |00003560| 75 72 65 20 76 65 72 73 | 69 6f 6e 73 20 6f 66 20 |ure vers|ions of | |00003570| 74 68 65 20 53 70 65 65 | 63 68 20 4d 61 6e 61 67 |the Spee|ch Manag| |00003580| 65 72 2c 20 79 6f 75 20 | 73 68 6f 75 6c 64 20 61 |er, you |should a| |00003590| 6c 77 61 79 73 20 75 73 | 65 20 4d 61 6b 65 56 6f |lways us|e MakeVo| |000035a0| 69 63 65 53 70 65 63 20 | 69 6e 73 74 65 61 64 20 |iceSpec |instead | |000035b0| 6f 66 20 73 65 74 74 69 | 6e 67 20 74 68 65 20 66 |of setti|ng the f| |000035c0| 69 65 6c 64 73 20 6f 66 | 20 74 68 65 20 56 6f 69 |ields of| the Voi| |000035d0| 63 65 53 70 65 63 20 73 | 74 72 75 63 74 75 72 65 |ceSpec s|tructure| |000035e0| 20 64 69 72 65 63 74 6c | 79 2e 0d 70 61 73 63 61 | directl|y..pasca| |000035f0| 6c 20 4f 53 45 72 72 20 | 4d 61 6b 65 56 6f 69 63 |l OSErr |MakeVoic| |00003600| 65 53 70 65 63 20 28 4f | 53 54 79 70 65 20 63 72 |eSpec (O|SType cr| |00003610| 65 61 74 6f 72 2c 20 4f | 53 54 79 70 65 20 69 64 |eator, O|SType id| |00003620| 2c 20 56 6f 69 63 65 53 | 70 65 63 20 2a 76 6f 69 |, VoiceS|pec *voi| |00003630| 63 65 29 3b 0d 74 79 70 | 65 64 65 66 20 73 74 72 |ce);.typ|edef str| |00003640| 75 63 74 20 56 6f 69 63 | 65 53 70 65 63 20 7b 0d |uct Voic|eSpec {.| |00003650| 09 4f 53 54 79 70 65 09 | 09 09 63 72 65 61 74 6f |.OSType.|..creato| |00003660| 72 3b 09 20 09 2f 2f 20 | 64 65 74 65 72 6d 69 6e |r;. .// |determin| |00003670| 65 73 20 77 68 69 63 68 | 20 73 79 6e 74 68 65 73 |es which| synthes| |00003680| 69 7a 65 72 20 69 73 20 | 72 65 71 75 69 72 65 64 |izer is |required| |00003690| 20 0d 09 4f 53 54 79 70 | 65 09 09 09 69 64 3b 09 | ..OSTyp|e...id;.| |000036a0| 09 20 09 2f 2f 20 76 6f | 69 63 65 20 49 44 20 6f |. .// vo|ice ID o| |000036b0| 6e 20 74 68 65 20 73 70 | 65 63 69 66 69 65 64 20 |n the sp|ecified | |000036c0| 73 79 6e 74 68 20 0d 7d | 20 56 6f 69 63 65 53 70 |synth .}| VoiceSp| |000036d0| 65 63 3b 0d 46 69 65 6c | 64 20 64 65 73 63 72 69 |ec;.Fiel|d descri| |000036e0| 70 74 69 6f 6e 73 0d 63 | 72 65 61 74 6f 72 09 54 |ptions.c|reator.T| |000036f0| 68 65 20 73 79 6e 74 68 | 65 73 69 7a 65 72 20 72 |he synth|esizer r| |00003700| 65 71 75 69 72 65 64 20 | 62 79 20 79 6f 75 72 20 |equired |by your | |00003710| 61 70 70 6c 69 63 61 74 | 69 6f 6e 0d 69 64 09 49 |applicat|ion.id.I| |00003720| 64 65 6e 74 69 66 69 63 | 61 74 69 6f 6e 20 6e 75 |dentific|ation nu| |00003730| 6d 62 65 72 20 66 6f 72 | 20 74 68 69 73 20 76 6f |mber for| this vo| |00003740| 69 63 65 0d 2a 76 6f 69 | 63 65 09 50 6f 69 6e 74 |ice.*voi|ce.Point| |00003750| 65 72 20 74 6f 20 74 68 | 65 20 56 6f 69 63 65 53 |er to th|e VoiceS| |00003760| 70 65 63 20 73 74 72 75 | 63 74 75 72 65 0d 44 45 |pec stru|cture.DE| |00003770| 53 43 52 49 50 54 49 4f | 4e 0d 4d 6f 73 74 20 76 |SCRIPTIO|N.Most v| |00003780| 6f 69 63 65 20 6d 61 6e | 61 67 65 6d 65 6e 74 20 |oice man|agement | |00003790| 72 6f 75 74 69 6e 65 73 | 20 65 78 70 65 63 74 20 |routines| expect | |000037a0| 74 6f 20 62 65 20 70 61 | 73 73 65 64 20 61 20 70 |to be pa|ssed a p| |000037b0| 6f 69 6e 74 65 72 20 74 | 6f 20 61 20 56 6f 69 63 |ointer t|o a Voic| |000037c0| 65 53 70 65 63 20 73 74 | 72 75 63 74 75 72 65 2e |eSpec st|ructure.| |000037d0| 20 4d 61 6b 65 56 6f 69 | 63 65 53 70 65 63 20 69 | MakeVoi|ceSpec i| |000037e0| 73 20 61 20 75 74 69 6c | 69 74 79 20 72 6f 75 74 |s a util|ity rout| |000037f0| 69 6e 65 20 70 72 6f 76 | 69 64 65 64 20 74 6f 20 |ine prov|ided to | |00003800| 66 61 63 69 6c 69 74 61 | 74 65 20 74 68 65 20 63 |facilita|te the c| |00003810| 72 65 61 74 69 6f 6e 20 | 6f 66 20 56 6f 69 63 65 |reation |of Voice| |00003820| 53 70 65 63 20 72 65 63 | 6f 72 64 73 2e 20 4f 6e |Spec rec|ords. On| |00003830| 20 72 65 74 75 72 6e 2c | 20 74 68 65 20 70 61 73 | return,| the pas| |00003840| 73 65 64 20 56 6f 69 63 | 65 53 70 65 63 20 73 74 |sed Voic|eSpec st| |00003850| 72 75 63 74 75 72 65 20 | 63 6f 6e 74 61 69 6e 73 |ructure |contains| |00003860| 20 74 68 65 20 61 70 70 | 72 6f 70 72 69 61 74 65 | the app|ropriate| |00003870| 20 76 61 6c 75 65 73 2e | 0d 56 6f 69 63 65 73 20 | values.|.Voices | |00003880| 61 72 65 20 73 74 6f 72 | 65 64 20 69 6e 20 72 65 |are stor|ed in re| |00003890| 73 6f 75 72 63 65 73 20 | 6f 66 20 74 79 70 65 20 |sources |of type | |000038a0| 27 74 74 73 76 27 20 69 | 6e 20 74 68 65 20 72 65 |'ttsv' i|n the re| |000038b0| 73 6f 75 72 63 65 20 66 | 6f 72 6b 20 6f 66 20 4d |source f|ork of M| |000038c0| 61 63 69 6e 74 6f 73 68 | 20 66 69 6c 65 73 2e 20 |acintosh| files. | |000038d0| 54 68 65 20 53 70 65 65 | 63 68 20 4d 61 6e 61 67 |The Spee|ch Manag| |000038e0| 65 72 20 75 73 65 73 20 | 74 68 65 20 73 61 6d 65 |er uses |the same| |000038f0| 20 73 65 61 72 63 68 20 | 6d 65 74 68 6f 64 20 61 | search |method a| |00003900| 73 20 74 68 65 20 52 65 | 73 6f 75 72 63 65 20 4d |s the Re|source M| |00003910| 61 6e 61 67 65 72 2c 20 | 6c 6f 6f 6b 69 6e 67 20 |anager, |looking | |00003920| 66 6f 72 20 76 6f 69 63 | 65 20 72 65 73 6f 75 72 |for voic|e resour| |00003930| 63 65 73 20 69 6e 20 74 | 68 72 65 65 20 64 69 66 |ces in t|hree dif| |00003940| 66 65 72 65 6e 74 20 6c | 6f 63 61 74 69 6f 6e 73 |ferent l|ocations| |00003950| 20 77 68 65 6e 20 61 74 | 74 65 6d 70 74 69 6e 67 | when at|tempting| |00003960| 20 74 6f 20 72 65 73 6f | 6c 76 65 20 56 6f 69 63 | to reso|lve Voic| |00003970| 65 53 70 65 63 20 72 65 | 66 65 72 65 6e 63 65 73 |eSpec re|ferences| |00003980| 2e 20 49 74 20 66 69 72 | 73 74 20 6c 6f 6f 6b 73 |. It fir|st looks| |00003990| 20 69 6e 20 74 68 65 20 | 61 70 70 6c 69 63 61 74 | in the |applicat| |000039a0| 69 6f 6e d5 73 20 72 65 | 73 6f 75 72 63 65 20 66 |ion.s re|source f| |000039b0| 69 6c 65 20 63 68 61 69 | 6e 2e 20 49 66 20 74 68 |ile chai|n. If th| |000039c0| 65 20 73 70 65 63 69 66 | 69 65 64 20 76 6f 69 63 |e specif|ied voic| |000039d0| 65 20 69 73 20 6e 6f 74 | 20 66 6f 75 6e 64 20 69 |e is not| found i| |000039e0| 6e 20 61 6e 20 6f 70 65 | 6e 20 66 69 6c 65 2c 20 |n an ope|n file, | |000039f0| 69 74 20 74 68 65 6e 20 | 6c 6f 6f 6b 73 20 69 6e |it then |looks in| |00003a00| 20 74 68 65 20 53 79 73 | 74 65 6d 20 46 6f 6c 64 | the Sys|tem Fold| |00003a10| 65 72 20 61 6e 64 20 74 | 68 65 20 45 78 74 65 6e |er and t|he Exten| |00003a20| 73 69 6f 6e 73 20 66 6f | 6c 64 65 72 20 28 6f 72 |sions fo|lder (or| |00003a30| 20 69 6e 20 6a 75 73 74 | 20 74 68 65 20 53 79 73 | in just| the Sys| |00003a40| 74 65 6d 20 46 6f 6c 64 | 65 72 20 75 6e 64 65 72 |tem Fold|er under| |00003a50| 20 53 79 73 74 65 6d 20 | 36 29 20 66 6f 72 20 66 | System |6) for f| |00003a60| 69 6c 65 73 20 6f 66 20 | 74 79 70 65 20 27 74 74 |iles of |type 'tt| |00003a70| 73 76 27 20 28 73 69 6e | 67 6c 65 2d 76 6f 69 63 |sv' (sin|gle-voic| |00003a80| 65 20 66 69 6c 65 73 29 | 20 6f 72 20 27 74 74 73 |e files)| or 'tts| |00003a90| 62 27 20 28 6d 75 6c 74 | 69 76 6f 69 63 65 20 66 |b' (mult|ivoice f| |00003aa0| 69 6c 65 73 29 20 61 6e | 64 20 69 6e 20 74 65 78 |iles) an|d in tex| |00003ab0| 74 2d 74 6f 2d 73 70 65 | 65 63 68 20 73 79 6e 74 |t-to-spe|ech synt| |00003ac0| 68 65 73 69 7a 65 72 20 | 63 6f 6d 70 6f 6e 65 6e |hesizer |componen| |00003ad0| 74 20 66 69 6c 65 73 20 | 28 66 69 6c 65 20 74 79 |t files |(file ty| |00003ae0| 70 65 20 27 49 4e 49 54 | 27 20 6f 72 20 27 74 68 |pe 'INIT|' or 'th| |00003af0| 6e 67 27 29 2e 20 56 6f | 69 63 65 73 20 73 74 6f |ng'). Vo|ices sto| |00003b00| 72 65 64 20 69 6e 20 74 | 68 65 20 53 79 73 74 65 |red in t|he Syste| |00003b10| 6d 20 46 6f 6c 64 65 72 | 20 6f 72 20 45 78 74 65 |m Folder| or Exte| |00003b20| 6e 73 69 6f 6e 73 20 66 | 6f 6c 64 65 72 20 61 72 |nsions f|older ar| |00003b30| 65 20 6e 6f 72 6d 61 6c | 6c 79 20 61 76 61 69 6c |e normal|ly avail| |00003b40| 61 62 6c 65 20 74 6f 20 | 61 6c 6c 20 61 70 70 6c |able to |all appl| |00003b50| 69 63 61 74 69 6f 6e 73 | 2e 20 56 6f 69 63 65 73 |ications|. Voices| |00003b60| 20 73 74 6f 72 65 64 20 | 69 6e 20 74 68 65 20 72 | stored |in the r| |00003b70| 65 73 6f 75 72 63 65 20 | 66 6f 72 6b 20 6f 66 20 |esource |fork of | |00003b80| 61 6e 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 66 |an appli|cation f| |00003b90| 69 6c 65 73 20 61 72 65 | 20 70 72 69 76 61 74 65 |iles are| private| |00003ba0| 20 74 6f 20 74 68 65 20 | 61 70 70 6c 69 63 61 74 | to the |applicat| |00003bb0| 69 6f 6e 2e 0d 52 45 53 | 55 4c 54 20 43 4f 44 45 |ion..RES|ULT CODE| |00003bc0| 6e 6f 45 72 72 09 30 09 | 4e 6f 20 65 72 72 6f 72 |noErr.0.|No error| |00003bd0| 09 0d 0d 57 68 69 6c 65 | 20 74 68 65 20 64 65 74 |...While| the det| |00003be0| 65 72 6d 69 6e 61 74 69 | 6f 6e 20 6f 66 20 73 70 |erminati|on of sp| |00003bf0| 65 63 69 66 69 63 20 76 | 6f 69 63 65 20 49 44 20 |ecific v|oice ID | |00003c00| 76 61 6c 75 65 73 20 69 | 73 20 6d 6f 73 74 6c 79 |values i|s mostly| |00003c10| 20 6c 65 66 74 20 74 6f | 20 73 79 6e 74 68 65 73 | left to| synthes| |00003c20| 69 7a 65 72 20 64 65 76 | 65 6c 6f 70 65 72 73 2c |izer dev|elopers,| |00003c30| 20 74 68 65 20 76 6f 69 | 63 65 20 63 72 65 61 74 | the voi|ce creat| |00003c40| 6f 72 20 76 61 6c 75 65 | 73 20 61 72 65 20 73 70 |or value|s are sp| |00003c50| 65 63 69 66 69 65 64 20 | 62 79 20 41 70 70 6c 65 |ecified |by Apple| |00003c60| 20 28 74 68 65 79 20 77 | 6f 75 6c 64 20 6f 72 64 | (they w|ould ord| |00003c70| 69 6e 61 72 69 6c 79 20 | 63 6f 72 72 65 73 70 6f |inarily |correspo| |00003c80| 6e 64 20 74 6f 20 61 20 | 64 65 76 65 6c 6f 70 65 |nd to a |develope| |00003c90| 72 d5 73 20 63 75 72 72 | 65 6e 74 6c 79 20 61 73 |r.s curr|ently as| |00003ca0| 73 69 67 6e 65 64 20 63 | 72 65 61 74 6f 72 20 49 |signed c|reator I| |00003cb0| 44 29 2e 20 46 6f 72 20 | 62 6f 74 68 20 74 68 65 |D). For |both the| |00003cc0| 20 63 72 65 61 74 6f 72 | 20 61 6e 64 20 69 64 20 | creator| and id | |00003cd0| 66 69 65 6c 64 73 20 41 | 70 70 6c 65 20 66 75 72 |fields A|pple fur| |00003ce0| 74 68 65 72 20 72 65 73 | 65 72 76 65 73 20 74 68 |ther res|erves th| |00003cf0| 65 20 73 65 74 20 6f 66 | 20 4f 53 54 79 70 65 20 |e set of| OSType | |00003d00| 76 61 6c 75 65 73 20 73 | 70 65 63 69 66 69 65 64 |values s|pecified| |00003d10| 20 65 6e 74 69 72 65 6c | 79 20 62 79 20 73 70 61 | entirel|y by spa| |00003d20| 63 65 20 63 68 61 72 61 | 63 74 65 72 73 20 61 6e |ce chara|cters an| |00003d30| 64 20 6c 6f 77 65 72 63 | 61 73 65 20 6c 65 74 74 |d lowerc|ase lett| |00003d40| 65 72 73 2e 20 41 70 70 | 6c 65 20 69 73 20 65 73 |ers. App|le is es| |00003d50| 74 61 62 6c 69 73 68 69 | 6e 67 20 61 20 73 74 61 |tablishi|ng a sta| |00003d60| 6e 64 61 72 64 20 73 75 | 69 74 65 20 6f 66 20 76 |ndard su|ite of v| |00003d70| 6f 69 63 65 20 49 44 20 | 76 61 6c 75 65 73 20 74 |oice ID |values t| |00003d80| 68 61 74 20 64 65 76 65 | 6c 6f 70 65 72 73 20 63 |hat deve|lopers c| |00003d90| 61 6e 20 63 6f 75 6e 74 | 20 75 70 6f 6e 20 62 65 |an count| upon be| |00003da0| 69 6e 67 20 61 76 61 69 | 6c 61 62 6c 65 20 77 69 |ing avai|lable wi| |00003db0| 74 68 20 61 6c 6c 20 73 | 70 65 65 63 68 20 73 79 |th all s|peech sy| |00003dc0| 6e 74 68 65 73 69 7a 65 | 72 73 2e 0d 43 6f 75 6e |nthesize|rs..Coun| |00003dd0| 74 56 6f 69 63 65 73 0d | 0d 54 68 65 20 43 6f 75 |tVoices.|.The Cou| |00003de0| 6e 74 56 6f 69 63 65 73 | 20 72 6f 75 74 69 6e 65 |ntVoices| routine| |00003df0| 20 72 65 74 75 72 6e 73 | 20 74 68 65 20 6e 75 6d | returns| the num| |00003e00| 62 65 72 20 6f 66 20 76 | 6f 69 63 65 73 20 61 76 |ber of v|oices av| |00003e10| 61 69 6c 61 62 6c 65 2e | 0d 70 61 73 63 61 6c 20 |ailable.|.pascal | |00003e20| 4f 53 45 72 72 20 43 6f | 75 6e 74 56 6f 69 63 65 |OSErr Co|untVoice| |00003e30| 73 20 28 73 68 6f 72 74 | 20 2a 76 6f 69 63 65 43 |s (short| *voiceC| |00003e40| 6f 75 6e 74 29 3b 0d 46 | 69 65 6c 64 20 64 65 73 |ount);.F|ield des| |00003e50| 63 72 69 70 74 69 6f 6e | 73 0d 76 6f 69 63 65 43 |cription|s.voiceC| |00003e60| 6f 75 6e 74 09 4e 75 6d | 62 65 72 20 6f 66 20 76 |ount.Num|ber of v| |00003e70| 6f 69 63 65 73 20 61 76 | 61 69 6c 61 62 6c 65 20 |oices av|ailable | |00003e80| 74 6f 20 74 68 65 20 61 | 70 70 6c 69 63 61 74 69 |to the a|pplicati| |00003e90| 6f 6e 0d 44 45 53 43 52 | 49 50 54 49 4f 4e 0d 45 |on.DESCR|IPTION.E| |00003ea0| 61 63 68 20 74 69 6d 65 | 20 43 6f 75 6e 74 56 6f |ach time| CountVo| |00003eb0| 69 63 65 73 20 69 73 20 | 63 61 6c 6c 65 64 2c 20 |ices is |called, | |00003ec0| 74 68 65 20 53 70 65 65 | 63 68 20 4d 61 6e 61 67 |the Spee|ch Manag| |00003ed0| 65 72 20 73 65 61 72 63 | 68 65 73 20 66 6f 72 20 |er searc|hes for | |00003ee0| 6e 65 77 20 76 6f 69 63 | 65 73 2e 20 54 68 69 73 |new voic|es. This| |00003ef0| 20 61 6c 67 6f 72 69 74 | 68 6d 20 73 75 70 70 6f | algorit|hm suppo| |00003f00| 72 74 73 20 64 79 6e 61 | 6d 69 63 20 69 6e 73 74 |rts dyna|mic inst| |00003f10| 61 6c 6c 61 74 69 6f 6e | 20 6f 66 20 76 6f 69 63 |allation| of voic| |00003f20| 65 73 20 62 79 20 61 70 | 70 6c 69 63 61 74 69 6f |es by ap|plicatio| |00003f30| 6e 73 20 6f 72 20 75 73 | 65 72 73 2e 20 4f 6e 20 |ns or us|ers. On | |00003f40| 72 65 74 75 72 6e 2c 20 | 74 68 65 20 76 6f 69 63 |return, |the voic| |00003f50| 65 43 6f 75 6e 74 20 70 | 61 72 61 6d 65 74 65 72 |eCount p|arameter| |00003f60| 20 63 6f 6e 74 61 69 6e | 73 20 74 68 65 20 6e 75 | contain|s the nu| |00003f70| 6d 62 65 72 20 6f 66 20 | 76 6f 69 63 65 73 20 61 |mber of |voices a| |00003f80| 76 61 69 6c 61 62 6c 65 | 2e 0d 52 45 53 55 4c 54 |vailable|..RESULT| |00003f90| 20 43 4f 44 45 53 6e 6f | 45 72 72 09 30 09 4e 6f | CODESno|Err.0.No| |00003fa0| 20 65 72 72 6f 72 09 0d | 0d 47 65 74 49 6e 64 56 | error..|.GetIndV| |00003fb0| 6f 69 63 65 0d 0d 54 68 | 65 20 47 65 74 49 6e 64 |oice..Th|e GetInd| |00003fc0| 56 6f 69 63 65 20 72 6f | 75 74 69 6e 65 20 72 65 |Voice ro|utine re| |00003fd0| 74 75 72 6e 73 20 69 6e | 66 6f 72 6d 61 74 69 6f |turns in|formatio| |00003fe0| 6e 20 61 62 6f 75 74 20 | 61 20 73 70 65 63 69 66 |n about |a specif| |00003ff0| 69 63 20 76 6f 69 63 65 | 2e 0d 70 61 73 63 61 6c |ic voice|..pascal| |00004000| 20 4f 53 45 72 72 20 47 | 65 74 49 6e 64 56 6f 69 | OSErr G|etIndVoi| |00004010| 63 65 20 28 73 68 6f 72 | 74 20 69 6e 64 65 78 2c |ce (shor|t index,| |00004020| 20 56 6f 69 63 65 53 70 | 65 63 20 2a 76 6f 69 63 | VoiceSp|ec *voic| |00004030| 65 29 3b 0d 46 69 65 6c | 64 20 64 65 73 63 72 69 |e);.Fiel|d descri| |00004040| 70 74 69 6f 6e 73 0d 69 | 6e 64 65 78 09 49 6e 64 |ptions.i|ndex.Ind| |00004050| 65 78 20 76 61 6c 75 65 | 20 66 6f 72 20 61 20 73 |ex value| for a s| |00004060| 70 65 63 69 66 69 63 20 | 76 6f 69 63 65 0d 2a 76 |pecific |voice.*v| |00004070| 6f 69 63 65 09 50 6f 69 | 6e 74 65 72 20 74 6f 20 |oice.Poi|nter to | |00004080| 74 68 65 20 56 6f 69 63 | 65 53 70 65 63 20 73 74 |the Voic|eSpec st| |00004090| 72 75 63 74 75 72 65 0d | 44 45 53 43 52 49 50 54 |ructure.|DESCRIPT| |000040a0| 49 4f 4e 0d 41 73 20 77 | 69 74 68 20 61 6c 6c 20 |ION.As w|ith all | |000040b0| 6f 74 68 65 72 20 69 6e | 64 65 78 2d 62 61 73 65 |other in|dex-base| |000040c0| 64 20 72 6f 75 74 69 6e | 65 73 20 69 6e 20 74 68 |d routin|es in th| |000040d0| 65 20 4d 61 63 69 6e 74 | 6f 73 68 20 54 6f 6f 6c |e Macint|osh Tool| |000040e0| 62 6f 78 2c 20 61 6e 20 | 69 6e 64 65 78 20 76 61 |box, an |index va| |000040f0| 6c 75 65 20 6f 66 20 31 | 20 63 61 75 73 65 73 20 |lue of 1| causes | |00004100| 47 65 74 49 6e 64 56 6f | 69 63 65 20 74 6f 20 72 |GetIndVo|ice to r| |00004110| 65 74 75 72 6e 20 69 6e | 66 6f 72 6d 61 74 69 6f |eturn in|formatio| |00004120| 6e 20 66 6f 72 20 74 68 | 65 20 66 69 72 73 74 20 |n for th|e first | |00004130| 76 6f 69 63 65 2e 20 54 | 68 65 20 6f 72 64 65 72 |voice. T|he order| |00004140| 20 74 68 61 74 20 76 6f | 69 63 65 73 20 61 72 65 | that vo|ices are| |00004150| 20 72 65 74 75 72 6e 65 | 64 20 69 73 20 6e 6f 74 | returne|d is not| |00004160| 20 70 72 65 73 65 6e 74 | 6c 79 20 64 65 66 69 6e | present|ly defin| |00004170| 65 64 20 61 6e 64 20 73 | 68 6f 75 6c 64 20 6e 6f |ed and s|hould no| |00004180| 74 20 62 65 20 61 73 73 | 75 6d 65 64 2e 20 53 70 |t be ass|umed. Sp| |00004190| 65 65 63 68 20 4d 61 6e | 61 67 65 72 20 62 65 68 |eech Man|ager beh| |000041a0| 61 76 69 6f 72 20 77 68 | 65 6e 20 76 6f 69 63 65 |avior wh|en voice| |000041b0| 20 66 69 6c 65 73 20 6f | 72 20 72 65 73 6f 75 72 | files o|r resour| |000041c0| 63 65 73 20 61 72 65 20 | 61 64 64 65 64 2c 20 72 |ces are |added, r| |000041d0| 65 6d 6f 76 65 64 2c 20 | 6f 72 20 6d 6f 64 69 66 |emoved, |or modif| |000041e0| 69 65 64 20 69 73 20 61 | 6c 73 6f 20 70 72 65 73 |ied is a|lso pres| |000041f0| 65 6e 74 6c 79 20 75 6e | 64 65 66 69 6e 65 64 2e |ently un|defined.| |00004200| 20 48 6f 77 65 76 65 72 | 2c 20 63 61 6c 6c 69 6e | However|, callin| |00004210| 67 20 43 6f 75 6e 74 56 | 6f 69 63 65 73 20 6f 72 |g CountV|oices or| |00004220| 20 47 65 74 49 6e 64 56 | 6f 69 63 65 20 77 69 74 | GetIndV|oice wit| |00004230| 68 20 61 6e 20 69 6e 64 | 65 78 20 6f 66 20 31 20 |h an ind|ex of 1 | |00004240| 77 69 6c 6c 20 66 6f 72 | 63 65 20 74 68 65 20 53 |will for|ce the S| |00004250| 70 65 65 63 68 20 4d 61 | 6e 61 67 65 72 20 74 6f |peech Ma|nager to| |00004260| 20 75 70 64 61 74 65 20 | 69 74 73 20 6c 69 73 74 | update |its list| |00004270| 20 6f 66 20 61 76 61 69 | 6c 61 62 6c 65 20 76 6f | of avai|lable vo| |00004280| 69 63 65 73 2e 20 47 65 | 74 49 6e 64 56 6f 69 63 |ices. Ge|tIndVoic| |00004290| 65 20 77 69 6c 6c 20 72 | 65 74 75 72 6e 20 61 20 |e will r|eturn a | |000042a0| 76 6f 69 63 65 4e 6f 74 | 46 6f 75 6e 64 20 65 72 |voiceNot|Found er| |000042b0| 72 6f 72 20 69 66 20 74 | 68 65 20 70 61 73 73 65 |ror if t|he passe| |000042c0| 64 20 69 6e 64 65 78 20 | 76 61 6c 75 65 20 65 78 |d index |value ex| |000042d0| 63 65 65 64 73 20 74 68 | 65 20 6e 75 6d 62 65 72 |ceeds th|e number| |000042e0| 20 6f 66 20 61 76 61 69 | 6c 61 62 6c 65 20 76 6f | of avai|lable vo| |000042f0| 69 63 65 73 2e 0d 52 45 | 53 55 4c 54 20 43 4f 44 |ices..RE|SULT COD| |00004300| 45 53 6e 6f 45 72 72 09 | 30 09 4e 6f 20 65 72 72 |ESnoErr.|0.No err| |00004310| 6f 72 09 0d 76 6f 69 63 | 65 4e 6f 74 46 6f 75 6e |or..voic|eNotFoun| |00004320| 64 09 d0 32 34 34 09 56 | 6f 69 63 65 20 72 65 73 |d..244.V|oice res| |00004330| 6f 75 72 63 65 20 6e 6f | 74 20 66 6f 75 6e 64 09 |ource no|t found.| |00004340| 0d 0d 47 65 74 56 6f 69 | 63 65 44 65 73 63 72 69 |..GetVoi|ceDescri| |00004350| 70 74 69 6f 6e 0d 0d 54 | 68 65 20 47 65 74 56 6f |ption..T|he GetVo| |00004360| 69 63 65 44 65 73 63 72 | 69 70 74 69 6f 6e 20 72 |iceDescr|iption r| |00004370| 6f 75 74 69 6e 65 20 72 | 65 74 75 72 6e 73 20 69 |outine r|eturns i| |00004380| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 61 62 6f 75 74 |nformati|on about| |00004390| 20 61 20 76 6f 69 63 65 | 20 62 65 79 6f 6e 64 20 | a voice| beyond | |000043a0| 74 68 61 74 20 70 72 6f | 76 69 64 65 64 20 62 79 |that pro|vided by| |000043b0| 20 47 65 74 49 6e 64 56 | 6f 69 63 65 2e 0d 70 61 | GetIndV|oice..pa| |000043c0| 73 63 61 6c 20 4f 53 45 | 72 72 20 47 65 74 56 6f |scal OSE|rr GetVo| |000043d0| 69 63 65 44 65 73 63 72 | 69 70 74 69 6f 6e 20 28 |iceDescr|iption (| |000043e0| 56 6f 69 63 65 53 70 65 | 63 20 2a 76 6f 69 63 65 |VoiceSpe|c *voice| |000043f0| 2c 0d 09 09 09 56 6f 69 | 63 65 44 65 73 63 72 69 |,....Voi|ceDescri| |00004400| 70 74 69 6f 6e 20 2a 69 | 6e 66 6f 2c 20 6c 6f 6e |ption *i|nfo, lon| |00004410| 67 20 69 6e 66 6f 4c 65 | 6e 67 74 68 29 3b 0d 65 |g infoLe|ngth);.e| |00004420| 6e 75 6d 20 7b 6b 4e 65 | 75 74 65 72 20 3d 20 30 |num {kNe|uter = 0| |00004430| 2c 20 6b 4d 61 6c 65 2c | 20 6b 46 65 6d 61 6c 65 |, kMale,| kFemale| |00004440| 7d 3b 09 2f 2f 20 72 65 | 74 75 72 6e 65 64 20 69 |};.// re|turned i| |00004450| 6e 20 67 65 6e 64 65 72 | 20 66 69 65 6c 64 20 62 |n gender| field b| |00004460| 65 6c 6f 77 20 0d 0d 74 | 79 70 65 64 65 66 20 73 |elow ..t|ypedef s| |00004470| 74 72 75 63 74 20 56 6f | 69 63 65 44 65 73 63 72 |truct Vo|iceDescr| |00004480| 69 70 74 69 6f 6e 20 7b | 0d 09 6c 6f 6e 67 09 09 |iption {|..long..| |00004490| 09 09 6c 65 6e 67 74 68 | 3b 09 09 09 09 09 2f 2f |..length|;.....//| |000044a0| 20 73 69 7a 65 20 6f 66 | 20 73 74 72 75 63 74 75 | size of| structu| |000044b0| 72 65 20 0d 09 56 6f 69 | 63 65 53 70 65 63 09 09 |re ..Voi|ceSpec..| |000044c0| 09 09 76 6f 69 63 65 3b | 09 09 09 09 09 2f 2f 20 |..voice;|.....// | |000044d0| 73 79 6e 74 68 20 61 6e | 64 20 49 44 20 69 6e 66 |synth an|d ID inf| |000044e0| 6f 20 66 6f 72 20 76 6f | 69 63 65 20 0d 09 6c 6f |o for vo|ice ..lo| |000044f0| 6e 67 09 09 09 09 76 65 | 72 73 69 6f 6e 3b 09 09 |ng....ve|rsion;..| |00004500| 09 09 09 2f 2f 20 76 65 | 72 73 69 6f 6e 20 63 6f |...// ve|rsion co| |00004510| 64 65 20 66 6f 72 20 76 | 6f 69 63 65 20 0d 09 53 |de for v|oice ..S| |00004520| 74 72 36 33 09 09 09 09 | 6e 61 6d 65 3b 09 09 09 |tr63....|name;...| |00004530| 09 09 2f 2f 20 6e 61 6d | 65 20 6f 66 20 76 6f 69 |..// nam|e of voi| |00004540| 63 65 20 0d 09 53 74 72 | 32 35 35 09 09 09 09 63 |ce ..Str|255....c| |00004550| 6f 6d 6d 65 6e 74 3b 09 | 09 09 09 09 2f 2f 20 61 |omment;.|....// a| |00004560| 64 64 69 74 69 6f 6e 61 | 6c 20 74 65 78 74 20 69 |dditiona|l text i| |00004570| 6e 66 6f 20 61 62 6f 75 | 74 20 76 6f 69 63 65 20 |nfo abou|t voice | |00004580| 0d 09 73 68 6f 72 74 09 | 09 09 09 67 65 6e 64 65 |..short.|...gende| |00004590| 72 3b 09 09 09 09 09 2f | 2f 20 6e 65 75 74 65 72 |r;...../|/ neuter| |000045a0| 2c 20 6d 61 6c 65 2c 20 | 6f 72 20 66 65 6d 61 6c |, male, |or femal| |000045b0| 65 20 0d 09 73 68 6f 72 | 74 09 09 09 09 61 67 65 |e ..shor|t....age| |000045c0| 3b 09 09 09 09 09 2f 2f | 20 61 70 70 72 6f 78 69 |;.....//| approxi| |000045d0| 6d 61 74 65 20 61 67 65 | 20 69 6e 20 79 65 61 72 |mate age| in year| |000045e0| 73 20 0d 09 73 68 6f 72 | 74 09 09 09 09 73 63 72 |s ..shor|t....scr| |000045f0| 69 70 74 3b 09 09 09 09 | 09 2f 2f 20 73 63 72 69 |ipt;....|.// scri| |00004600| 70 74 20 63 6f 64 65 20 | 6f 66 20 74 65 78 74 20 |pt code |of text | |00004610| 76 6f 69 63 65 20 63 61 | 6e 20 70 72 6f 63 65 73 |voice ca|n proces| |00004620| 73 20 0d 09 73 68 6f 72 | 74 09 09 09 09 6c 61 6e |s ..shor|t....lan| |00004630| 67 75 61 67 65 3b 09 09 | 09 09 09 2f 2f 20 6c 61 |guage;..|...// la| |00004640| 6e 67 75 61 67 65 20 63 | 6f 64 65 20 6f 66 20 76 |nguage c|ode of v| |00004650| 6f 69 63 65 20 6f 75 74 | 70 75 74 20 73 70 65 65 |oice out|put spee| |00004660| 63 68 20 0d 09 73 68 6f | 72 74 09 09 09 09 72 65 |ch ..sho|rt....re| |00004670| 67 69 6f 6e 3b 09 09 09 | 09 09 2f 2f 20 72 65 67 |gion;...|..// reg| |00004680| 69 6f 6e 20 63 6f 64 65 | 20 6f 66 20 76 6f 69 63 |ion code| of voic| |00004690| 65 20 6f 75 74 70 75 74 | 20 73 70 65 65 63 68 20 |e output| speech | |000046a0| 0d 09 6c 6f 6e 67 09 09 | 09 09 72 65 73 65 72 76 |..long..|..reserv| |000046b0| 65 64 5b 34 5d 3b 09 09 | 09 09 09 2f 2f 20 61 6c |ed[4];..|...// al| |000046c0| 77 61 79 73 20 7a 65 72 | 6f 20 2d 20 72 65 73 65 |ways zer|o - rese| |000046d0| 72 76 65 64 20 0d 7d 20 | 56 6f 69 63 65 44 65 73 |rved .} |VoiceDes| |000046e0| 63 72 69 70 74 69 6f 6e | 3b 0d 46 69 65 6c 64 20 |cription|;.Field | |000046f0| 64 65 73 63 72 69 70 74 | 69 6f 6e 73 0d 2a 76 6f |descript|ions.*vo| |00004700| 69 63 65 09 50 6f 69 6e | 74 65 72 20 74 6f 20 74 |ice.Poin|ter to t| |00004710| 68 65 20 56 6f 69 63 65 | 53 70 65 63 20 73 74 72 |he Voice|Spec str| |00004720| 75 63 74 75 72 65 0d 2a | 69 6e 66 6f 09 50 6f 69 |ucture.*|info.Poi| |00004730| 6e 74 65 72 20 74 6f 20 | 73 74 72 75 63 74 75 72 |nter to |structur| |00004740| 65 20 63 6f 6e 74 61 69 | 6e 69 6e 67 20 70 61 72 |e contai|ning par| |00004750| 61 6d 65 74 65 72 73 20 | 66 6f 72 20 74 68 65 20 |ameters |for the | |00004760| 73 70 65 63 69 66 69 65 | 64 20 76 6f 69 63 65 0d |specifie|d voice.| |00004770| 69 6e 66 6f 4c 65 6e 67 | 74 68 09 4c 65 6e 67 74 |infoLeng|th.Lengt| |00004780| 68 20 69 6e 20 62 79 74 | 65 73 20 6f 66 20 69 6e |h in byt|es of in| |00004790| 66 6f 20 73 74 72 75 63 | 74 75 72 65 0d 44 45 53 |fo struc|ture.DES| |000047a0| 43 52 49 50 54 49 4f 4e | 0d 54 68 65 20 53 70 65 |CRIPTION|.The Spe| |000047b0| 65 63 68 20 4d 61 6e 61 | 67 65 72 20 66 69 6c 6c |ech Mana|ger fill| |000047c0| 73 20 6f 75 74 20 74 68 | 65 20 70 61 73 73 65 64 |s out th|e passed| |000047d0| 20 56 6f 69 63 65 44 65 | 73 63 72 69 70 74 69 6f | VoiceDe|scriptio| |000047e0| 6e 20 66 69 65 6c 64 73 | 20 77 69 74 68 20 74 68 |n fields| with th| |000047f0| 65 20 63 6f 72 72 65 63 | 74 20 69 6e 66 6f 72 6d |e correc|t inform| |00004800| 61 74 69 6f 6e 20 66 6f | 72 20 74 68 65 20 73 70 |ation fo|r the sp| |00004810| 65 63 69 66 69 65 64 20 | 76 6f 69 63 65 2e 20 49 |ecified |voice. I| |00004820| 66 20 61 20 6e 75 6c 6c | 20 56 6f 69 63 65 53 70 |f a null| VoiceSp| |00004830| 65 63 20 70 6f 69 6e 74 | 65 72 20 69 73 20 70 61 |ec point|er is pa| |00004840| 73 73 65 64 2c 20 74 68 | 65 20 53 70 65 65 63 68 |ssed, th|e Speech| |00004850| 20 4d 61 6e 61 67 65 72 | 20 72 65 74 75 72 6e 73 | Manager| returns| |00004860| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 66 6f 72 | informa|tion for| |00004870| 20 74 68 65 20 73 79 73 | 74 65 6d 20 64 65 66 61 | the sys|tem defa| |00004880| 75 6c 74 20 76 6f 69 63 | 65 2e 20 49 66 20 74 68 |ult voic|e. If th| |00004890| 65 20 56 6f 69 63 65 44 | 65 73 63 72 69 70 74 69 |e VoiceD|escripti| |000048a0| 6f 6e 20 70 6f 69 6e 74 | 65 72 20 69 73 20 6e 75 |on point|er is nu| |000048b0| 6c 6c 2c 20 74 68 65 20 | 53 70 65 65 63 68 20 4d |ll, the |Speech M| |000048c0| 61 6e 61 67 65 72 20 73 | 69 6d 70 6c 79 20 76 65 |anager s|imply ve| |000048d0| 72 69 66 69 65 73 20 74 | 68 61 74 20 74 68 65 20 |rifies t|hat the | |000048e0| 73 70 65 63 69 66 69 65 | 64 20 56 6f 69 63 65 53 |specifie|d VoiceS| |000048f0| 70 65 63 20 72 65 66 65 | 72 73 20 74 6f 20 61 6e |pec refe|rs to an| |00004900| 20 61 76 61 69 6c 61 62 | 6c 65 20 76 6f 69 63 65 | availab|le voice| |00004910| 2e 20 49 66 20 56 6f 69 | 63 65 53 70 65 63 20 64 |. If Voi|ceSpec d| |00004920| 6f 65 73 20 6e 6f 74 20 | 72 65 66 65 72 20 74 6f |oes not |refer to| |00004930| 20 61 20 6b 6e 6f 77 6e | 20 76 6f 69 63 65 2c 20 | a known| voice, | |00004940| 47 65 74 56 6f 69 63 65 | 44 65 73 63 72 69 70 74 |GetVoice|Descript| |00004950| 69 6f 6e 20 72 65 74 75 | 72 6e 73 20 61 20 76 6f |ion retu|rns a vo| |00004960| 69 63 65 4e 6f 74 46 6f | 75 6e 64 20 65 72 72 6f |iceNotFo|und erro| |00004970| 72 2c 20 61 73 20 73 68 | 6f 77 6e 20 69 6e 20 4c |r, as sh|own in L| |00004980| 69 73 74 69 6e 67 20 31 | 2d 33 2e 0d 54 6f 20 6d |isting 1|-3..To m| |00004990| 61 78 69 6d 69 7a 65 20 | 63 6f 6d 70 61 74 69 62 |aximize |compatib| |000049a0| 69 6c 69 74 79 20 77 69 | 74 68 20 66 75 74 75 72 |ility wi|th futur| |000049b0| 65 20 76 65 72 73 69 6f | 6e 73 20 6f 66 20 74 68 |e versio|ns of th| |000049c0| 65 20 53 70 65 65 63 68 | 20 4d 61 6e 61 67 65 72 |e Speech| Manager| |000049d0| 2c 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |, the ap|plicatio| |000049e0| 6e 20 6d 75 73 74 20 70 | 61 73 73 20 74 68 65 20 |n must p|ass the | |000049f0| 73 69 7a 65 20 6f 66 20 | 74 68 65 20 56 6f 69 63 |size of |the Voic| |00004a00| 65 44 65 73 63 72 69 70 | 74 69 6f 6e 20 73 74 72 |eDescrip|tion str| |00004a10| 75 63 74 75 72 65 2e 20 | 48 61 76 69 6e 67 20 74 |ucture. |Having t| |00004a20| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 64 |he appli|cation d| |00004a30| 6f 20 74 68 69 73 20 65 | 6e 73 75 72 65 73 20 74 |o this e|nsures t| |00004a40| 68 61 74 20 74 68 65 20 | 53 70 65 65 63 68 20 4d |hat the |Speech M| |00004a50| 61 6e 61 67 65 72 20 77 | 69 6c 6c 20 6e 65 76 65 |anager w|ill neve| |00004a60| 72 20 77 72 69 74 65 20 | 6d 6f 72 65 20 64 61 74 |r write |more dat| |00004a70| 61 20 69 6e 74 6f 20 74 | 68 65 20 70 61 73 73 65 |a into t|he passe| |00004a80| 64 20 73 74 72 75 63 74 | 75 72 65 20 74 68 61 6e |d struct|ure than| |00004a90| 20 77 69 6c 6c 20 66 69 | 74 20 65 76 65 6e 20 69 | will fi|t even i| |00004aa0| 66 20 61 64 64 69 74 69 | 6f 6e 61 6c 20 69 6e 66 |f additi|onal inf| |00004ab0| 6f 72 6d 61 74 69 6f 6e | 20 66 69 65 6c 64 73 20 |ormation| fields | |00004ac0| 61 72 65 20 64 65 66 69 | 6e 65 64 20 69 6e 20 74 |are defi|ned in t| |00004ad0| 68 65 20 66 75 74 75 72 | 65 2e 20 4f 6e 20 72 65 |he futur|e. On re| |00004ae0| 74 75 72 6e 69 6e 67 20 | 66 72 6f 6d 20 47 65 74 |turning |from Get| |00004af0| 56 6f 69 63 65 44 65 73 | 63 72 69 70 74 69 6f 6e |VoiceDes|cription| |00004b00| 2c 20 74 68 65 20 6c 65 | 6e 67 74 68 20 66 69 65 |, the le|ngth fie| |00004b10| 6c 64 20 69 73 20 73 65 | 74 20 74 6f 20 72 65 66 |ld is se|t to ref| |00004b20| 6c 65 63 74 20 74 68 65 | 20 6c 65 6e 67 74 68 20 |lect the| length | |00004b30| 6f 66 20 64 61 74 61 20 | 61 63 74 75 61 6c 6c 79 |of data |actually| |00004b40| 20 77 72 69 74 74 65 6e | 20 62 79 20 74 68 69 73 | written| by this| |00004b50| 20 72 6f 75 74 69 6e 65 | 2e 0d 4c 69 73 74 69 6e | routine|..Listin| |00004b60| 67 20 31 2d 33 09 47 65 | 74 74 69 6e 67 20 69 6e |g 1-3.Ge|tting in| |00004b70| 66 6f 72 6d 61 74 69 6f | 6e 20 61 62 6f 75 74 20 |formatio|n about | |00004b80| 61 20 76 6f 69 63 65 0d | 0d 4f 53 45 72 72 20 47 |a voice.|.OSErr G| |00004b90| 65 74 56 6f 69 63 65 47 | 65 6e 64 65 72 20 28 56 |etVoiceG|ender (V| |00004ba0| 6f 69 63 65 53 70 65 63 | 20 2a 76 6f 69 63 65 50 |oiceSpec| *voiceP| |00004bb0| 74 72 2c 20 73 68 6f 72 | 74 20 2a 67 65 6e 64 65 |tr, shor|t *gende| |00004bc0| 72 29 20 7b 0d 09 4f 53 | 45 72 72 09 09 09 09 65 |r) {..OS|Err....e| |00004bd0| 72 72 3b 0d 09 56 6f 69 | 63 65 44 65 73 63 72 69 |rr;..Voi|ceDescri| |00004be0| 70 74 69 6f 6e 09 09 76 | 64 3b 0d 09 65 72 72 20 |ption..v|d;..err | |00004bf0| 3d 20 47 65 74 56 6f 69 | 63 65 44 65 73 63 72 69 |= GetVoi|ceDescri| |00004c00| 70 74 69 6f 6e 0d 09 09 | 28 76 6f 69 63 65 50 74 |ption...|(voicePt| |00004c10| 72 2c 26 76 64 2c 73 69 | 7a 65 6f 66 28 56 6f 69 |r,&vd,si|zeof(Voi| |00004c20| 63 65 44 65 73 63 72 69 | 70 74 69 6f 6e 29 29 3b |ceDescri|ption));| |00004c30| 0d 09 69 66 20 28 65 72 | 72 20 3d 3d 20 6e 6f 45 |..if (er|r == noE| |00004c40| 72 72 29 20 7b 0d 09 09 | 69 66 20 28 76 64 2e 6c |rr) {...|if (vd.l| |00004c50| 65 6e 67 74 68 20 3e 20 | 6f 66 66 73 65 74 6f 66 |ength > |offsetof| |00004c60| 28 56 6f 69 63 65 44 65 | 73 63 72 69 70 74 69 6f |(VoiceDe|scriptio| |00004c70| 6e 2c 67 65 6e 64 65 72 | 29 29 0d 09 09 09 2a 67 |n,gender|))....*g| |00004c80| 65 6e 64 65 72 20 3d 20 | 76 64 2e 67 65 6e 64 65 |ender = |vd.gende| |00004c90| 72 3b 0d 09 09 65 6c 73 | 65 0d 09 09 09 65 72 72 |r;...els|e....err| |00004ca0| 20 3d 20 62 61 64 53 74 | 72 75 63 74 4c 65 6e 3b | = badSt|ructLen;| |00004cb0| 0d 09 7d 0d 09 72 65 74 | 75 72 6e 20 65 72 72 3b |..}..ret|urn err;| |00004cc0| 0d 7d 0d 52 45 53 55 4c | 54 20 43 4f 44 45 53 6e |.}.RESUL|T CODESn| |00004cd0| 6f 45 72 72 09 30 09 4e | 6f 20 65 72 72 6f 72 09 |oErr.0.N|o error.| |00004ce0| 0d 70 61 72 61 6d 45 72 | 72 09 d0 35 30 09 50 61 |.paramEr|r..50.Pa| |00004cf0| 72 61 6d 65 74 65 72 20 | 65 72 72 6f 72 09 0d 6d |rameter |error..m| |00004d00| 65 6d 46 75 6c 6c 45 72 | 72 09 d0 31 30 38 09 4e |emFullEr|r..108.N| |00004d10| 6f 74 20 65 6e 6f 75 67 | 68 20 6d 65 6d 6f 72 79 |ot enoug|h memory| |00004d20| 20 74 6f 20 6c 6f 61 64 | 20 76 6f 69 63 65 20 69 | to load| voice i| |00004d30| 6e 74 6f 20 6d 65 6d 6f | 72 79 09 0d 76 6f 69 63 |nto memo|ry..voic| |00004d40| 65 4e 6f 74 46 6f 75 6e | 64 09 d0 32 34 34 09 56 |eNotFoun|d..244.V| |00004d50| 6f 69 63 65 20 72 65 73 | 6f 75 72 63 65 20 6e 6f |oice res|ource no| |00004d60| 74 20 66 6f 75 6e 64 09 | 0d 0d 4d 61 6e 61 67 69 |t found.|..Managi| |00004d70| 6e 67 20 43 6f 6e 6e 65 | 63 74 69 6f 6e 73 20 74 |ng Conne|ctions t| |00004d80| 6f 20 53 70 65 65 63 68 | 20 53 79 6e 74 68 65 73 |o Speech| Synthes| |00004d90| 69 7a 65 72 73 0d 0d 55 | 73 69 6e 67 20 74 68 65 |izers..U|sing the| |00004da0| 20 72 6f 75 74 69 6e 65 | 73 20 64 65 73 63 72 69 | routine|s descri| |00004db0| 62 65 64 20 65 61 72 6c | 69 65 72 20 69 6e 20 74 |bed earl|ier in t| |00004dc0| 68 69 73 20 64 6f 63 75 | 6d 65 6e 74 2c 20 61 6e |his docu|ment, an| |00004dd0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 63 61 6e | applica|tion can| |00004de0| 20 73 65 6c 65 63 74 20 | 74 68 65 20 76 6f 69 63 | select |the voic| |00004df0| 65 20 77 69 74 68 20 77 | 68 69 63 68 20 74 6f 20 |e with w|hich to | |00004e00| 73 70 65 61 6b 2e 20 54 | 68 65 20 6e 65 78 74 20 |speak. T|he next | |00004e10| 73 74 65 70 20 69 73 20 | 74 6f 20 61 73 73 6f 63 |step is |to assoc| |00004e20| 69 61 74 65 20 74 68 65 | 20 73 65 6c 65 63 74 65 |iate the| selecte| |00004e30| 64 20 76 6f 69 63 65 20 | 77 69 74 68 20 74 68 65 |d voice |with the| |00004e40| 20 70 72 6f 70 65 72 20 | 73 70 65 65 63 68 20 73 | proper |speech s| |00004e50| 79 6e 74 68 65 73 69 7a | 65 72 2e 20 54 68 69 73 |ynthesiz|er. This| |00004e60| 20 69 73 20 61 63 63 6f | 6d 70 6c 69 73 68 65 64 | is acco|mplished| |00004e70| 20 62 79 20 63 72 65 61 | 74 69 6e 67 20 61 20 6e | by crea|ting a n| |00004e80| 65 77 20 73 70 65 65 63 | 68 20 63 68 61 6e 6e 65 |ew speec|h channe| |00004e90| 6c 20 77 69 74 68 20 74 | 68 65 20 4e 65 77 53 70 |l with t|he NewSp| |00004ea0| 65 65 63 68 43 68 61 6e | 6e 65 6c 20 72 6f 75 74 |eechChan|nel rout| |00004eb0| 69 6e 65 2e 20 41 20 73 | 70 65 65 63 68 20 63 68 |ine. A s|peech ch| |00004ec0| 61 6e 6e 65 6c 20 69 73 | 20 61 20 70 72 69 76 61 |annel is| a priva| |00004ed0| 74 65 20 63 6f 6d 6d 75 | 6e 69 63 61 74 69 6f 6e |te commu|nication| |00004ee0| 20 63 6f 6e 6e 65 63 74 | 69 6f 6e 20 74 6f 20 74 | connect|ion to t| |00004ef0| 68 65 20 73 70 65 65 63 | 68 20 73 79 6e 74 68 65 |he speec|h synthe| |00004f00| 73 69 7a 65 72 2c 20 6d | 75 63 68 20 61 73 20 61 |sizer, m|uch as a| |00004f10| 20 66 69 6c 65 20 72 65 | 66 65 72 65 6e 63 65 20 | file re|ference | |00004f20| 6e 75 6d 62 65 72 20 69 | 73 20 61 20 63 6f 6d 6d |number i|s a comm| |00004f30| 75 6e 69 63 61 74 69 6f | 6e 20 63 68 61 6e 6e 65 |unicatio|n channe| |00004f40| 6c 20 74 6f 20 61 6e 20 | 6f 70 65 6e 20 66 69 6c |l to an |open fil| |00004f50| 65 20 69 6e 20 74 68 65 | 20 4d 61 63 69 6e 74 6f |e in the| Macinto| |00004f60| 73 68 20 66 69 6c 65 20 | 73 79 73 74 65 6d 2e 0d |sh file |system..| |00004f70| 54 68 65 20 44 69 73 70 | 6f 73 65 53 70 65 65 63 |The Disp|oseSpeec| |00004f80| 68 43 68 61 6e 6e 65 6c | 20 72 6f 75 74 69 6e 65 |hChannel| routine| |00004f90| 20 63 6c 6f 73 65 73 20 | 61 20 73 70 65 65 63 68 | closes |a speech| |00004fa0| 20 63 68 61 6e 6e 65 6c | 20 77 68 65 6e 20 74 68 | channel| when th| |00004fb0| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 69 73 |e applic|ation is| |00004fc0| 20 66 69 6e 69 73 68 65 | 64 20 77 69 74 68 20 69 | finishe|d with i| |00004fd0| 74 20 61 6e 64 20 72 65 | 6c 65 61 73 65 73 20 61 |t and re|leases a| |00004fe0| 6e 79 20 72 65 73 6f 75 | 72 63 65 73 20 74 68 61 |ny resou|rces tha| |00004ff0| 74 20 68 61 76 65 20 62 | 65 65 6e 20 61 6c 6c 6f |t have b|een allo| |00005000| 63 61 74 65 64 20 74 6f | 20 73 75 70 70 6f 72 74 |cated to| support| |00005010| 20 74 68 65 20 73 70 65 | 65 63 68 20 73 79 6e 74 | the spe|ech synt| |00005020| 68 65 73 69 7a 65 72 20 | 61 6e 64 20 61 72 65 20 |hesizer |and are | |00005030| 6e 6f 20 6c 6f 6e 67 65 | 72 20 6e 65 65 64 65 64 |no longe|r needed| |00005040| 2e 0d 4e 65 77 53 70 65 | 65 63 68 43 68 61 6e 6e |..NewSpe|echChann| |00005050| 65 6c 0d 0d 54 68 65 20 | 4e 65 77 53 70 65 65 63 |el..The |NewSpeec| |00005060| 68 43 68 61 6e 6e 65 6c | 20 72 6f 75 74 69 6e 65 |hChannel| routine| |00005070| 20 63 72 65 61 74 65 73 | 20 61 20 6e 65 77 20 73 | creates| a new s| |00005080| 70 65 65 63 68 20 63 68 | 61 6e 6e 65 6c 2e 0d 70 |peech ch|annel..p| |00005090| 61 73 63 61 6c 20 4f 53 | 45 72 72 20 4e 65 77 53 |ascal OS|Err NewS| |000050a0| 70 65 65 63 68 43 68 61 | 6e 6e 65 6c 20 28 56 6f |peechCha|nnel (Vo| |000050b0| 69 63 65 53 70 65 63 20 | 2a 76 6f 69 63 65 2c 20 |iceSpec |*voice, | |000050c0| 0d 09 53 70 65 65 63 68 | 43 68 61 6e 6e 65 6c 20 |..Speech|Channel | |000050d0| 2a 63 68 61 6e 29 3b 0d | 46 69 65 6c 64 20 64 65 |*chan);.|Field de| |000050e0| 73 63 72 69 70 74 69 6f | 6e 73 0d 2a 76 6f 69 63 |scriptio|ns.*voic| |000050f0| 65 09 50 6f 69 6e 74 65 | 72 20 74 6f 20 74 68 65 |e.Pointe|r to the| |00005100| 20 56 6f 69 63 65 53 70 | 65 63 20 73 74 72 75 63 | VoiceSp|ec struc| |00005110| 74 75 72 65 0d 2a 63 68 | 61 6e 09 50 6f 69 6e 74 |ture.*ch|an.Point| |00005120| 65 72 20 74 6f 20 74 68 | 65 20 6e 65 77 20 63 68 |er to th|e new ch| |00005130| 61 6e 6e 65 6c 0d 44 45 | 53 43 52 49 50 54 49 4f |annel.DE|SCRIPTIO| |00005140| 4e 0d 54 68 65 20 53 70 | 65 65 63 68 20 4d 61 6e |N.The Sp|eech Man| |00005150| 61 67 65 72 20 61 75 74 | 6f 6d 61 74 69 63 61 6c |ager aut|omatical| |00005160| 6c 79 20 6c 6f 63 61 74 | 65 73 20 61 6e 64 20 6f |ly locat|es and o| |00005170| 70 65 6e 73 20 61 20 63 | 6f 6e 6e 65 63 74 69 6f |pens a c|onnectio| |00005180| 6e 20 74 6f 20 74 68 65 | 20 70 72 6f 70 65 72 20 |n to the| proper | |00005190| 73 79 6e 74 68 65 73 69 | 7a 65 72 20 66 6f 72 20 |synthesi|zer for | |000051a0| 61 20 73 70 65 63 69 66 | 69 65 64 20 76 6f 69 63 |a specif|ied voic| |000051b0| 65 20 61 6e 64 20 73 65 | 74 73 20 75 70 20 61 20 |e and se|ts up a | |000051c0| 63 68 61 6e 6e 65 6c 20 | 61 74 20 74 68 65 20 6c |channel |at the l| |000051d0| 6f 63 61 74 69 6f 6e 20 | 70 6f 69 6e 74 65 64 20 |ocation |pointed | |000051e0| 74 6f 20 62 79 20 2a 63 | 68 61 6e 20 73 6f 20 74 |to by *c|han so t| |000051f0| 68 61 74 20 69 74 20 69 | 73 20 72 65 61 64 79 20 |hat it i|s ready | |00005200| 74 6f 20 73 70 65 61 6b | 20 77 69 74 68 20 74 68 |to speak| with th| |00005210| 61 74 20 76 6f 69 63 65 | 2e 20 49 66 20 61 20 6e |at voice|. If a n| |00005220| 75 6c 6c 20 56 6f 69 63 | 65 53 70 65 63 20 70 6f |ull Voic|eSpec po| |00005230| 69 6e 74 65 72 20 69 73 | 20 70 61 73 73 65 64 20 |inter is| passed | |00005240| 74 6f 20 4e 65 77 53 70 | 65 65 63 68 43 68 61 6e |to NewSp|eechChan| |00005250| 6e 65 6c 2c 20 74 68 65 | 20 53 70 65 65 63 68 20 |nel, the| Speech | |00005260| 4d 61 6e 61 67 65 72 20 | 75 73 65 73 20 74 68 65 |Manager |uses the| |00005270| 20 63 75 72 72 65 6e 74 | 20 73 79 73 74 65 6d 20 | current| system | |00005280| 64 65 66 61 75 6c 74 20 | 76 6f 69 63 65 2e 0d 54 |default |voice..T| |00005290| 68 65 72 65 20 69 73 20 | 6e 6f 20 70 72 65 64 65 |here is |no prede| |000052a0| 66 69 6e 65 64 20 6c 69 | 6d 69 74 20 74 6f 20 74 |fined li|mit to t| |000052b0| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 73 70 65 |he numbe|r of spe| |000052c0| 65 63 68 20 63 68 61 6e | 6e 65 6c 73 20 61 6e 20 |ech chan|nels an | |000052d0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 6d 61 79 20 |applicat|ion may | |000052e0| 63 72 65 61 74 65 2e 20 | 48 6f 77 65 76 65 72 2c |create. |However,| |000052f0| 20 73 79 73 74 65 6d 20 | 63 6f 6e 73 74 72 61 69 | system |constrai| |00005300| 6e 74 73 20 6f 6e 20 61 | 76 61 69 6c 61 62 6c 65 |nts on a|vailable| |00005310| 20 52 41 4d 2c 20 70 72 | 6f 63 65 73 73 6f 72 20 | RAM, pr|ocessor | |00005320| 6c 6f 61 64 69 6e 67 2c | 20 61 6e 64 20 6e 75 6d |loading,| and num| |00005330| 62 65 72 20 6f 66 20 61 | 76 61 69 6c 61 62 6c 65 |ber of a|vailable| |00005340| 20 73 6f 75 6e 64 20 63 | 68 61 6e 6e 65 6c 73 20 | sound c|hannels | |00005350| 6d 61 79 20 6c 69 6d 69 | 74 20 74 68 65 20 6e 75 |may limi|t the nu| |00005360| 6d 62 65 72 20 6f 66 20 | 73 70 65 65 63 68 20 63 |mber of |speech c| |00005370| 68 61 6e 6e 65 6c 73 20 | 61 63 74 75 61 6c 6c 79 |hannels |actually| |00005380| 20 70 6f 73 73 69 62 6c | 65 2e 0d 52 45 53 55 4c | possibl|e..RESUL| |00005390| 54 20 43 4f 44 45 53 6e | 6f 45 72 72 09 30 09 4e |T CODESn|oErr.0.N| |000053a0| 6f 20 65 72 72 6f 72 09 | 0d 6d 65 6d 46 75 6c 6c |o error.|.memFull| |000053b0| 45 72 72 09 d0 31 30 38 | 09 4e 6f 74 20 65 6e 6f |Err..108|.Not eno| |000053c0| 75 67 68 20 6d 65 6d 6f | 72 79 20 74 6f 20 6f 70 |ugh memo|ry to op| |000053d0| 65 6e 20 73 70 65 65 63 | 68 20 63 68 61 6e 6e 65 |en speec|h channe| |000053e0| 6c 09 0d 73 79 6e 74 68 | 4f 70 65 6e 46 61 69 6c |l..synth|OpenFail| |000053f0| 65 64 09 d0 32 34 31 09 | 43 6f 75 6c 64 20 6e 6f |ed..241.|Could no| |00005400| 74 20 6f 70 65 6e 20 61 | 6e 6f 74 68 65 72 20 73 |t open a|nother s| |00005410| 70 65 65 63 68 20 73 79 | 6e 74 68 65 73 69 7a 65 |peech sy|nthesize| |00005420| 72 20 63 68 61 6e 6e 65 | 6c 09 0d 76 6f 69 63 65 |r channe|l..voice| |00005430| 4e 6f 74 46 6f 75 6e 64 | 09 d0 32 34 34 09 56 6f |NotFound|..244.Vo| |00005440| 69 63 65 20 72 65 73 6f | 75 72 63 65 20 6e 6f 74 |ice reso|urce not| |00005450| 20 66 6f 75 6e 64 09 0d | 0d 44 69 73 70 6f 73 65 | found..|.Dispose| |00005460| 53 70 65 65 63 68 43 68 | 61 6e 6e 65 6c 0d 0d 54 |SpeechCh|annel..T| |00005470| 68 65 20 44 69 73 70 6f | 73 65 53 70 65 65 63 68 |he Dispo|seSpeech| |00005480| 43 68 61 6e 6e 65 6c 20 | 72 6f 75 74 69 6e 65 20 |Channel |routine | |00005490| 64 69 73 70 6f 73 65 73 | 20 6f 66 20 61 6e 20 65 |disposes| of an e| |000054a0| 78 69 73 74 69 6e 67 20 | 73 70 65 65 63 68 20 63 |xisting |speech c| |000054b0| 68 61 6e 6e 65 6c 2e 0d | 70 61 73 63 61 6c 20 4f |hannel..|pascal O| |000054c0| 53 45 72 72 20 44 69 73 | 70 6f 73 65 53 70 65 65 |SErr Dis|poseSpee| |000054d0| 63 68 43 68 61 6e 6e 65 | 6c 20 28 53 70 65 65 63 |chChanne|l (Speec| |000054e0| 68 43 68 61 6e 6e 65 6c | 20 63 68 61 6e 29 3b 0d |hChannel| chan);.| |000054f0| 46 69 65 6c 64 20 64 65 | 73 63 72 69 70 74 69 6f |Field de|scriptio| |00005500| 6e 73 0d 63 68 61 6e 09 | 53 70 65 63 69 66 69 63 |ns.chan.|Specific| |00005510| 20 73 70 65 65 63 68 20 | 63 68 61 6e 6e 65 6c 0d | speech |channel.| |00005520| 44 45 53 43 52 49 50 54 | 49 4f 4e 0d 54 68 69 73 |DESCRIPT|ION.This| |00005530| 20 72 6f 75 74 69 6e 65 | 20 64 69 73 70 6f 73 65 | routine| dispose| |00005540| 73 20 6f 66 20 61 6e 20 | 65 78 69 73 74 69 6e 67 |s of an |existing| |00005550| 20 73 70 65 65 63 68 20 | 63 68 61 6e 6e 65 6c 2e | speech |channel.| |00005560| 20 41 6e 79 20 73 70 65 | 65 63 68 20 63 68 61 6e | Any spe|ech chan| |00005570| 6e 65 6c 73 20 74 68 61 | 74 20 68 61 76 65 20 6e |nels tha|t have n| |00005580| 6f 74 20 62 65 65 6e 20 | 65 78 70 6c 69 63 69 74 |ot been |explicit| |00005590| 6c 79 20 64 69 73 70 6f | 73 65 64 20 6f 66 20 62 |ly dispo|sed of b| |000055a0| 79 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |y the ap|plicatio| |000055b0| 6e 20 61 72 65 20 72 65 | 6c 65 61 73 65 64 20 61 |n are re|leased a| |000055c0| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 20 62 79 20 |utomatic|ally by | |000055d0| 74 68 65 20 53 70 65 65 | 63 68 20 4d 61 6e 61 67 |the Spee|ch Manag| |000055e0| 65 72 20 77 68 65 6e 20 | 74 68 65 20 61 70 70 6c |er when |the appl| |000055f0| 69 63 61 74 69 6f 6e 20 | 71 75 69 74 73 2e 0d 52 |ication |quits..R| |00005600| 45 53 55 4c 54 20 43 4f | 44 45 53 6e 6f 45 72 72 |ESULT CO|DESnoErr| |00005610| 09 30 09 4e 6f 20 65 72 | 72 6f 72 09 0d 69 6e 76 |.0.No er|ror..inv| |00005620| 61 6c 69 64 43 6f 6d 70 | 6f 6e 65 6e 74 49 44 09 |alidComp|onentID.| |00005630| d0 33 30 30 30 09 49 6e | 76 61 6c 69 64 20 53 70 |.3000.In|valid Sp| |00005640| 65 65 63 68 43 68 61 6e | 6e 65 6c 20 70 61 72 61 |eechChan|nel para| |00005650| 6d 65 74 65 72 09 0d 0d | 53 74 61 72 74 69 6e 67 |meter...|Starting| |00005660| 20 61 6e 64 20 53 74 6f | 70 70 69 6e 67 20 53 70 | and Sto|pping Sp| |00005670| 65 65 63 68 0d 0d 41 6c | 6c 20 74 68 65 20 72 65 |eech..Al|l the re| |00005680| 6d 61 69 6e 69 6e 67 20 | 72 6f 75 74 69 6e 65 73 |maining |routines| |00005690| 20 69 6e 20 74 68 69 73 | 20 73 65 63 74 69 6f 6e | in this| section| |000056a0| 20 72 65 71 75 69 72 65 | 20 61 20 76 61 6c 69 64 | require| a valid| |000056b0| 20 73 70 65 65 63 68 20 | 63 68 61 6e 6e 65 6c 20 | speech |channel | |000056c0| 74 6f 20 77 6f 72 6b 20 | 70 72 6f 70 65 72 6c 79 |to work |properly| |000056d0| 2e 20 4f 6e 63 65 20 74 | 68 65 20 61 70 70 6c 69 |. Once t|he appli| |000056e0| 63 61 74 69 6f 6e 20 68 | 61 73 20 73 75 63 63 65 |cation h|as succe| |000056f0| 73 73 66 75 6c 6c 79 20 | 63 72 65 61 74 65 64 20 |ssfully |created | |00005700| 61 20 73 70 65 65 63 68 | 20 63 68 61 6e 6e 65 6c |a speech| channel| |00005710| 2c 20 69 74 20 63 61 6e | 20 73 74 61 72 74 20 74 |, it can| start t| |00005720| 6f 20 73 70 65 61 6b 2e | 20 59 6f 75 20 75 73 65 |o speak.| You use| |00005730| 20 74 68 65 20 53 70 65 | 61 6b 54 65 78 74 20 72 | the Spe|akText r| |00005740| 6f 75 74 69 6e 65 20 74 | 6f 20 62 65 67 69 6e 20 |outine t|o begin | |00005750| 73 70 65 61 6b 69 6e 67 | 20 6f 6e 20 61 20 73 70 |speaking| on a sp| |00005760| 65 65 63 68 20 63 68 61 | 6e 6e 65 6c 2e 0d 41 74 |eech cha|nnel..At| |00005770| 20 61 6e 79 20 74 69 6d | 65 20 64 75 72 69 6e 67 | any tim|e during| |00005780| 20 74 68 65 20 73 70 65 | 61 6b 69 6e 67 20 70 72 | the spe|aking pr| |00005790| 6f 63 65 73 73 2c 20 74 | 68 65 20 61 70 70 6c 69 |ocess, t|he appli| |000057a0| 63 61 74 69 6f 6e 20 63 | 61 6e 20 73 74 6f 70 20 |cation c|an stop | |000057b0| 74 68 65 20 73 79 6e 74 | 68 65 73 69 7a 65 72 d5 |the synt|hesizer.| |000057c0| 73 20 73 70 65 65 63 68 | 2e 20 54 68 65 20 53 74 |s speech|. The St| |000057d0| 6f 70 53 70 65 65 63 68 | 20 72 6f 75 74 69 6e 65 |opSpeech| routine| |000057e0| 20 77 69 6c 6c 20 69 6d | 6d 65 64 69 61 74 65 6c | will im|mediatel| |000057f0| 79 20 61 62 6f 72 74 20 | 61 6e 79 20 73 70 65 65 |y abort |any spee| |00005800| 63 68 20 62 65 69 6e 67 | 20 70 72 6f 64 75 63 65 |ch being| produce| |00005810| 64 20 6f 6e 20 74 68 65 | 20 73 70 65 63 69 66 69 |d on the| specifi| |00005820| 65 64 20 73 70 65 65 63 | 68 20 63 68 61 6e 6e 65 |ed speec|h channe| |00005830| 6c 20 61 6e 64 20 66 6f | 72 63 65 20 74 68 65 20 |l and fo|rce the | |00005840| 63 68 61 6e 6e 65 6c 20 | 62 61 63 6b 20 69 6e 74 |channel |back int| |00005850| 6f 20 61 6e 20 69 64 6c | 65 20 73 74 61 74 65 2e |o an idl|e state.| |00005860| 0d 53 70 65 61 6b 54 65 | 78 74 0d 0d 54 68 65 20 |.SpeakTe|xt..The | |00005870| 53 70 65 61 6b 54 65 78 | 74 20 72 6f 75 74 69 6e |SpeakTex|t routin| |00005880| 65 20 63 6f 6e 76 65 72 | 74 73 20 61 20 64 65 73 |e conver|ts a des| |00005890| 69 67 6e 61 74 65 64 20 | 74 65 78 74 20 69 6e 74 |ignated |text int| |000058a0| 6f 20 73 70 65 65 63 68 | 2e 0d 70 61 73 63 61 6c |o speech|..pascal| |000058b0| 20 4f 53 45 72 72 20 53 | 70 65 61 6b 54 65 78 74 | OSErr S|peakText| |000058c0| 20 28 53 70 65 65 63 68 | 43 68 61 6e 6e 65 6c 20 | (Speech|Channel | |000058d0| 63 68 61 6e 2c 20 50 74 | 72 20 74 65 78 74 42 75 |chan, Pt|r textBu| |000058e0| 66 2c 20 6c 6f 6e 67 0d | 09 62 79 74 65 4c 65 6e |f, long.|.byteLen| |000058f0| 67 74 68 29 3b 0d 46 69 | 65 6c 64 20 64 65 73 63 |gth);.Fi|eld desc| |00005900| 72 69 70 74 69 6f 6e 73 | 0d 63 68 61 6e 09 53 70 |riptions|.chan.Sp| |00005910| 65 63 69 66 69 63 20 73 | 70 65 65 63 68 20 63 68 |ecific s|peech ch| |00005920| 61 6e 6e 65 6c 0d 74 65 | 78 74 42 75 66 09 42 75 |annel.te|xtBuf.Bu| |00005930| 66 66 65 72 20 6f 66 20 | 74 65 78 74 0d 62 79 74 |ffer of |text.byt| |00005940| 65 4c 65 6e 67 74 68 09 | 4c 65 6e 67 74 68 20 6f |eLength.|Length o| |00005950| 66 20 74 65 78 74 42 75 | 66 0d 44 45 53 43 52 49 |f textBu|f.DESCRI| |00005960| 50 54 49 4f 4e 0d 49 6e | 20 61 64 64 69 74 69 6f |PTION.In| additio| |00005970| 6e 20 74 6f 20 61 20 76 | 61 6c 69 64 20 73 70 65 |n to a v|alid spe| |00005980| 65 63 68 20 63 68 61 6e | 6e 65 6c 2c 20 53 70 65 |ech chan|nel, Spe| |00005990| 61 6b 54 65 78 74 20 65 | 78 70 65 63 74 73 20 61 |akText e|xpects a| |000059a0| 20 70 6f 69 6e 74 65 72 | 20 74 6f 20 74 68 65 20 | pointer| to the | |000059b0| 74 65 78 74 20 74 6f 20 | 62 65 20 73 70 6f 6b 65 |text to |be spoke| |000059c0| 6e 20 61 6e 64 20 74 68 | 65 20 6c 65 6e 67 74 68 |n and th|e length| |000059d0| 20 69 6e 20 62 79 74 65 | 73 20 6f 66 20 74 68 65 | in byte|s of the| |000059e0| 20 74 65 78 74 20 62 75 | 66 66 65 72 2e 20 53 70 | text bu|ffer. Sp| |000059f0| 65 61 6b 54 65 78 74 20 | 77 69 6c 6c 20 63 6f 6e |eakText |will con| |00005a00| 76 65 72 74 20 74 68 65 | 20 67 69 76 65 6e 20 74 |vert the| given t| |00005a10| 65 78 74 20 73 74 72 65 | 61 6d 20 69 6e 74 6f 20 |ext stre|am into | |00005a20| 73 70 65 65 63 68 20 75 | 73 69 6e 67 20 74 68 65 |speech u|sing the| |00005a30| 20 76 6f 69 63 65 20 61 | 6e 64 20 63 6f 6e 74 72 | voice a|nd contr| |00005a40| 6f 6c 20 73 65 74 74 69 | 6e 67 73 20 66 6f 72 20 |ol setti|ngs for | |00005a50| 74 68 61 74 20 73 70 65 | 65 63 68 20 63 68 61 6e |that spe|ech chan| |00005a60| 6e 65 6c 2e 20 54 68 65 | 20 73 70 65 65 63 68 20 |nel. The| speech | |00005a70| 69 73 20 67 65 6e 65 72 | 61 74 65 64 20 61 73 79 |is gener|ated asy| |00005a80| 6e 63 68 72 6f 6e 6f 75 | 73 6c 79 2e 20 54 68 69 |nchronou|sly. Thi| |00005a90| 73 20 6d 65 61 6e 73 20 | 74 68 61 74 20 63 6f 6e |s means |that con| |00005aa0| 74 72 6f 6c 20 69 73 20 | 72 65 74 75 72 6e 65 64 |trol is |returned| |00005ab0| 20 74 6f 20 79 6f 75 72 | 20 61 70 70 6c 69 63 61 | to your| applica| |00005ac0| 74 69 6f 6e 20 62 65 66 | 6f 72 65 20 74 68 65 20 |tion bef|ore the | |00005ad0| 73 70 65 65 63 68 20 68 | 61 73 20 66 69 6e 69 73 |speech h|as finis| |00005ae0| 68 65 64 20 28 70 72 6f | 62 61 62 6c 79 20 65 76 |hed (pro|bably ev| |00005af0| 65 6e 20 62 65 66 6f 72 | 65 20 69 74 20 68 61 73 |en befor|e it has| |00005b00| 20 62 65 67 75 6e 29 2e | 20 54 68 65 20 6d 61 78 | begun).| The max| |00005b10| 69 6d 75 6d 20 6c 65 6e | 67 74 68 20 6f 66 20 74 |imum len|gth of t| |00005b20| 65 78 74 20 62 75 66 66 | 65 72 20 74 68 61 74 20 |ext buff|er that | |00005b30| 63 61 6e 20 62 65 20 73 | 70 6f 6b 65 6e 20 69 73 |can be s|poken is| |00005b40| 20 6c 69 6d 69 74 65 64 | 20 6f 6e 6c 79 20 62 79 | limited| only by| |00005b50| 20 74 68 65 20 61 76 61 | 69 6c 61 62 6c 65 20 52 | the ava|ilable R| |00005b60| 41 4d 2e 20 48 6f 77 65 | 76 65 72 2c 20 69 74 d5 |AM. Howe|ver, it.| |00005b70| 73 20 67 65 6e 65 72 61 | 6c 6c 79 20 6e 6f 74 20 |s genera|lly not | |00005b80| 76 65 72 79 20 66 72 69 | 65 6e 64 6c 79 20 74 6f |very fri|endly to| |00005b90| 20 66 6f 72 63 65 20 74 | 68 65 20 75 73 65 72 20 | force t|he user | |00005ba0| 74 6f 20 6c 69 73 74 65 | 6e 20 74 6f 20 6c 6f 6e |to liste|n to lon| |00005bb0| 67 20 75 6e 69 6e 74 65 | 72 72 75 70 74 65 64 20 |g uninte|rrupted | |00005bc0| 74 65 78 74 20 75 6e 6c | 65 73 73 20 74 68 65 20 |text unl|ess the | |00005bd0| 75 73 65 72 20 72 65 71 | 75 65 73 74 73 20 69 74 |user req|uests it| |00005be0| 2e 20 0d 49 66 20 53 70 | 65 61 6b 54 65 78 74 20 |. .If Sp|eakText | |00005bf0| 69 73 20 63 61 6c 6c 65 | 64 20 77 68 69 6c 65 20 |is calle|d while | |00005c00| 69 74 20 69 73 20 63 75 | 72 72 65 6e 74 6c 79 20 |it is cu|rrently | |00005c10| 62 75 73 79 20 73 70 65 | 61 6b 69 6e 67 20 74 68 |busy spe|aking th| |00005c20| 65 20 63 6f 6e 74 65 6e | 74 73 20 6f 66 20 61 20 |e conten|ts of a | |00005c30| 70 72 69 6f 72 20 74 65 | 78 74 20 62 75 66 66 65 |prior te|xt buffe| |00005c40| 72 2c 20 69 74 20 77 69 | 6c 6c 20 69 6d 6d 65 64 |r, it wi|ll immed| |00005c50| 69 61 74 65 6c 79 20 73 | 74 6f 70 20 73 70 65 61 |iately s|top spea| |00005c60| 6b 69 6e 67 20 66 72 6f | 6d 20 74 68 65 20 70 72 |king fro|m the pr| |00005c70| 69 6f 72 20 62 75 66 66 | 65 72 20 61 6e 64 20 77 |ior buff|er and w| |00005c80| 69 6c 6c 20 62 65 67 69 | 6e 20 73 70 65 61 6b 69 |ill begi|n speaki| |00005c90| 6e 67 20 66 72 6f 6d 20 | 74 68 65 20 6e 65 77 20 |ng from |the new | |00005ca0| 74 65 78 74 20 62 75 66 | 66 65 72 20 61 73 20 73 |text buf|fer as s| |00005cb0| 6f 6f 6e 20 61 73 20 70 | 6f 73 73 69 62 6c 65 2e |oon as p|ossible.| |00005cc0| 20 41 73 20 77 69 74 68 | 20 53 70 65 61 6b 53 74 | As with| SpeakSt| |00005cd0| 72 69 6e 67 2c 20 64 65 | 73 63 72 69 62 65 64 20 |ring, de|scribed | |00005ce0| 6f 6e 20 70 61 67 65 20 | 35 2c 20 69 66 20 61 6e |on page |5, if an| |00005cf0| 20 65 6d 70 74 79 20 28 | 7a 65 72 6f 20 6c 65 6e | empty (|zero len| |00005d00| 67 74 68 29 20 73 74 72 | 69 6e 67 20 6f 72 20 61 |gth) str|ing or a| |00005d10| 20 6e 75 6c 6c 20 74 65 | 78 74 20 62 75 66 66 65 | null te|xt buffe| |00005d20| 72 20 70 6f 69 6e 74 65 | 72 20 69 73 20 70 61 73 |r pointe|r is pas| |00005d30| 73 65 64 20 74 6f 20 53 | 70 65 61 6b 54 65 78 74 |sed to S|peakText| |00005d40| 2c 20 74 68 69 73 20 77 | 69 6c 6c 20 68 61 76 65 |, this w|ill have| |00005d50| 20 74 68 65 20 65 66 66 | 65 63 74 20 6f 66 20 73 | the eff|ect of s| |00005d60| 74 6f 70 70 69 6e 67 20 | 74 68 65 20 73 79 6e 74 |topping |the synt| |00005d70| 68 65 73 69 73 20 6f 66 | 20 61 6e 79 20 70 72 69 |hesis of| any pri| |00005d80| 6f 72 20 74 65 78 74 20 | 62 75 74 20 77 69 6c 6c |or text |but will| |00005d90| 20 6e 6f 74 20 67 65 6e | 65 72 61 74 65 20 61 6e | not gen|erate an| |00005da0| 79 20 61 64 64 69 74 69 | 6f 6e 61 6c 20 73 70 65 |y additi|onal spe| |00005db0| 65 63 68 2e 0d 73 57 41 | 52 4e 49 4e 47 0d 57 69 |ech..sWA|RNING.Wi| |00005dc0| 74 68 20 53 70 65 61 6b | 54 65 78 74 2c 20 75 6e |th Speak|Text, un| |00005dd0| 6c 69 6b 65 20 77 69 74 | 68 20 53 70 65 61 6b 53 |like wit|h SpeakS| |00005de0| 74 72 69 6e 67 2c 20 74 | 68 65 20 74 65 78 74 20 |tring, t|he text | |00005df0| 62 75 66 66 65 72 20 6d | 75 73 74 20 62 65 20 6c |buffer m|ust be l| |00005e00| 6f 63 6b 65 64 20 69 6e | 20 6d 65 6d 6f 72 79 20 |ocked in| memory | |00005e10| 61 6e 64 20 6d 75 73 74 | 20 6e 6f 74 20 6d 6f 76 |and must| not mov| |00005e20| 65 20 64 75 72 69 6e 67 | 20 74 68 65 20 65 6e 74 |e during| the ent| |00005e30| 69 72 65 20 74 69 6d 65 | 20 74 68 61 74 20 69 74 |ire time| that it| |00005e40| 20 69 73 20 62 65 69 6e | 67 20 63 6f 6e 76 65 72 | is bein|g conver| |00005e50| 74 65 64 20 69 6e 74 6f | 20 73 70 65 65 63 68 2e |ted into| speech.| |00005e60| 20 54 68 69 73 20 62 75 | 66 66 65 72 20 69 73 20 | This bu|ffer is | |00005e70| 72 65 61 64 20 61 74 20 | 69 6e 74 65 72 72 75 70 |read at |interrup| |00005e80| 74 20 74 69 6d 65 2c 20 | 61 6e 64 20 76 65 72 79 |t time, |and very| |00005e90| 20 75 6e 64 65 73 69 72 | 61 62 6c 65 20 65 66 66 | undesir|able eff| |00005ea0| 65 63 74 73 20 77 69 6c | 6c 20 68 61 70 70 65 6e |ects wil|l happen| |00005eb0| 20 69 66 20 69 74 20 6d | 6f 76 65 73 20 6f 72 20 | if it m|oves or | |00005ec0| 69 73 20 70 75 72 67 65 | 64 20 66 72 6f 6d 20 6d |is purge|d from m| |00005ed0| 65 6d 6f 72 79 2e 13 73 | 0d 52 45 53 55 4c 54 20 |emory..s|.RESULT | |00005ee0| 43 4f 44 45 53 6e 6f 45 | 72 72 09 30 09 4e 6f 20 |CODESnoE|rr.0.No | |00005ef0| 65 72 72 6f 72 09 0d 69 | 6e 76 61 6c 69 64 43 6f |error..i|nvalidCo| |00005f00| 6d 70 6f 6e 65 6e 74 49 | 44 09 d0 33 30 30 30 09 |mponentI|D..3000.| |00005f10| 49 6e 76 61 6c 69 64 20 | 53 70 65 65 63 68 43 68 |Invalid |SpeechCh| |00005f20| 61 6e 6e 65 6c 20 70 61 | 72 61 6d 65 74 65 72 09 |annel pa|rameter.| |00005f30| 0d 0d 53 74 6f 70 53 70 | 65 65 63 68 0d 0d 54 68 |..StopSp|eech..Th| |00005f40| 65 20 53 74 6f 70 53 70 | 65 65 63 68 20 72 6f 75 |e StopSp|eech rou| |00005f50| 74 69 6e 65 20 74 65 72 | 6d 69 6e 61 74 65 73 20 |tine ter|minates | |00005f60| 73 70 65 65 63 68 20 64 | 65 6c 69 76 65 72 79 20 |speech d|elivery | |00005f70| 6f 6e 20 61 20 73 70 65 | 63 69 66 69 65 64 20 63 |on a spe|cified c| |00005f80| 68 61 6e 6e 65 6c 2e 0d | 70 61 73 63 61 6c 20 4f |hannel..|pascal O| |00005f90| 53 45 72 72 20 53 74 6f | 70 53 70 65 65 63 68 20 |SErr Sto|pSpeech | |00005fa0| 28 53 70 65 65 63 68 43 | 68 61 6e 6e 65 6c 20 63 |(SpeechC|hannel c| |00005fb0| 68 61 6e 29 3b 0d 46 69 | 65 6c 64 20 64 65 73 63 |han);.Fi|eld desc| |00005fc0| 72 69 70 74 69 6f 6e 73 | 0d 63 68 61 6e 09 53 70 |riptions|.chan.Sp| |00005fd0| 65 63 69 66 69 63 20 73 | 70 65 65 63 68 20 63 68 |ecific s|peech ch| |00005fe0| 61 6e 6e 65 6c 0d 44 45 | 53 43 52 49 50 54 49 4f |annel.DE|SCRIPTIO| |00005ff0| 4e 0d 41 66 74 65 72 20 | 72 65 74 75 72 6e 69 6e |N.After |returnin| |00006000| 67 20 66 72 6f 6d 20 53 | 74 6f 70 53 70 65 65 63 |g from S|topSpeec| |00006010| 68 2c 20 74 68 65 20 61 | 70 70 6c 69 63 61 74 69 |h, the a|pplicati| |00006020| 6f 6e 20 63 61 6e 20 73 | 61 66 65 6c 79 20 72 65 |on can s|afely re| |00006030| 6c 65 61 73 65 20 61 6e | 79 20 74 65 78 74 20 62 |lease an|y text b| |00006040| 75 66 66 65 72 20 74 68 | 61 74 20 74 68 61 74 20 |uffer th|at that | |00006050| 74 68 65 20 73 70 65 65 | 63 68 20 73 79 6e 74 68 |the spee|ch synth| |00006060| 65 73 69 7a 65 72 20 68 | 61 73 20 62 65 65 6e 20 |esizer h|as been | |00006070| 75 73 69 6e 67 2e 20 54 | 68 65 20 53 70 65 65 63 |using. T|he Speec| |00006080| 68 42 75 73 79 20 72 6f | 75 74 69 6e 65 2c 20 64 |hBusy ro|utine, d| |00006090| 65 73 63 72 69 62 65 64 | 20 6f 6e 20 70 61 67 65 |escribed| on page| |000060a0| 20 36 2c 20 63 61 6e 20 | 62 65 20 75 73 65 64 20 | 6, can |be used | |000060b0| 74 6f 20 64 65 74 65 72 | 6d 69 6e 65 20 69 66 20 |to deter|mine if | |000060c0| 74 68 65 20 74 65 78 74 | 20 68 61 73 20 62 65 65 |the text| has bee| |000060d0| 6e 20 63 6f 6d 70 6c 65 | 74 65 6c 79 20 73 70 6f |n comple|tely spo| |000060e0| 6b 65 6e 2e 20 28 49 6e | 20 61 6e 20 65 6e 76 69 |ken. (In| an envi| |000060f0| 72 6f 6e 6d 65 6e 74 20 | 77 69 74 68 20 6d 75 6c |ronment |with mul| |00006100| 74 69 70 6c 65 20 73 70 | 65 65 63 68 20 63 68 61 |tiple sp|eech cha| |00006110| 6e 6e 65 6c 73 2c 20 79 | 6f 75 20 6d 61 79 20 6e |nnels, y|ou may n| |00006120| 65 65 64 20 74 6f 20 75 | 73 65 20 74 68 65 20 6d |eed to u|se the m| |00006130| 6f 72 65 20 61 64 76 61 | 6e 63 65 64 20 73 74 61 |ore adva|nced sta| |00006140| 74 75 73 20 72 6f 75 74 | 69 6e 65 20 47 65 74 53 |tus rout|ine GetS| |00006150| 70 65 65 63 68 49 6e 66 | 6f 2c 20 64 65 73 63 72 |peechInf|o, descr| |00006160| 69 62 65 64 20 6f 6e 20 | 70 61 67 65 20 32 35 2c |ibed on |page 25,| |00006170| 20 74 6f 20 64 65 74 65 | 72 6d 69 6e 65 20 69 66 | to dete|rmine if| |00006180| 20 61 20 73 70 65 63 69 | 66 69 63 20 63 68 61 6e | a speci|fic chan| |00006190| 6e 65 6c 20 69 73 20 73 | 74 69 6c 6c 20 73 70 65 |nel is s|till spe| |000061a0| 61 6b 69 6e 67 2e 29 20 | 53 74 6f 70 53 70 65 65 |aking.) |StopSpee| |000061b0| 63 68 20 63 61 6e 20 62 | 65 20 63 61 6c 6c 65 64 |ch can b|e called| |000061c0| 20 66 6f 72 20 61 6e 20 | 61 6c 72 65 61 64 79 20 | for an |already | |000061d0| 69 64 6c 65 20 63 68 61 | 6e 6e 65 6c 20 77 69 74 |idle cha|nnel wit| |000061e0| 68 6f 75 74 20 69 6c 6c | 20 65 66 66 65 63 74 2e |hout ill| effect.| |000061f0| 20 0d 52 45 53 55 4c 54 | 20 43 4f 44 45 53 6e 6f | .RESULT| CODESno| |00006200| 45 72 72 09 30 09 4e 6f | 20 65 72 72 6f 72 09 0d |Err.0.No| error..| |00006210| 69 6e 76 61 6c 69 64 43 | 6f 6d 70 6f 6e 65 6e 74 |invalidC|omponent| |00006220| 49 44 09 d0 33 30 30 30 | 09 49 6e 76 61 6c 69 64 |ID..3000|.Invalid| |00006230| 20 53 70 65 65 63 68 43 | 68 61 6e 6e 65 6c 20 70 | SpeechC|hannel p| |00006240| 61 72 61 6d 65 74 65 72 | 09 0d 0d 55 73 69 6e 67 |arameter|...Using| |00006250| 20 42 61 73 69 63 20 53 | 70 65 65 63 68 20 43 6f | Basic S|peech Co| |00006260| 6e 74 72 6f 6c 73 0d 0d | 54 68 65 20 53 70 65 65 |ntrols..|The Spee| |00006270| 63 68 20 4d 61 6e 61 67 | 65 72 20 70 72 6f 76 69 |ch Manag|er provi| |00006280| 64 65 73 20 73 65 76 65 | 72 61 6c 20 6d 65 74 68 |des seve|ral meth| |00006290| 6f 64 73 20 6f 66 20 61 | 64 6a 75 73 74 69 6e 67 |ods of a|djusting| |000062a0| 20 74 68 65 20 76 61 72 | 69 61 62 6c 65 73 20 74 | the var|iables t| |000062b0| 68 61 74 20 63 61 6e 20 | 61 66 66 65 63 74 20 74 |hat can |affect t| |000062c0| 68 65 20 77 61 79 20 73 | 70 65 65 63 68 20 69 73 |he way s|peech is| |000062d0| 20 73 79 6e 74 68 65 73 | 69 7a 65 64 2e 20 41 6c | synthes|ized. Al| |000062e0| 74 68 6f 75 67 68 20 6d | 6f 73 74 20 61 70 70 6c |though m|ost appl| |000062f0| 69 63 61 74 69 6f 6e 73 | 20 70 72 6f 62 61 62 6c |ications| probabl| |00006300| 79 20 64 6f 20 6e 6f 74 | 20 6e 65 65 64 20 74 6f |y do not| need to| |00006310| 20 75 73 65 20 74 68 65 | 73 65 20 61 64 76 61 6e | use the|se advan| |00006320| 63 65 64 20 66 65 61 74 | 75 72 65 73 2c 20 74 77 |ced feat|ures, tw| |00006330| 6f 20 6f 66 20 74 68 65 | 20 73 70 65 65 63 68 20 |o of the| speech | |00006340| 76 61 72 69 61 62 6c 65 | 73 2c 20 73 70 65 61 6b |variable|s, speak| |00006350| 69 6e 67 20 72 61 74 65 | 20 61 6e 64 20 73 70 65 |ing rate| and spe| |00006360| 61 6b 69 6e 67 20 70 69 | 74 63 68 2c 20 61 72 65 |aking pi|tch, are| |00006370| 20 75 73 65 66 75 6c 20 | 65 6e 6f 75 67 68 20 74 | useful |enough t| |00006380| 68 61 74 20 61 20 76 65 | 72 79 20 73 69 6d 70 6c |hat a ve|ry simpl| |00006390| 65 20 77 61 79 20 6f 66 | 20 61 64 6a 75 73 74 69 |e way of| adjusti| |000063a0| 6e 67 20 74 68 65 73 65 | 20 70 61 72 61 6d 65 74 |ng these| paramet| |000063b0| 65 72 73 20 6f 6e 20 61 | 20 63 68 61 6e 6e 65 6c |ers on a| channel| |000063c0| 2d 62 79 2d 63 68 61 6e | 6e 65 6c 20 62 61 73 69 |-by-chan|nel basi| |000063d0| 73 20 69 73 20 70 72 6f | 76 69 64 65 64 2e 20 52 |s is pro|vided. R| |000063e0| 6f 75 74 69 6e 65 73 20 | 61 72 65 20 73 75 70 70 |outines |are supp| |000063f0| 6c 69 65 64 20 74 68 61 | 74 20 65 6e 61 62 6c 65 |lied tha|t enable| +--------+-------------------------+-------------------------+--------+--------+ Only 25.0 KB of data is shown above.